src/Services/WidgetDocumentQuery.php
private function validateWidgetId(?string $widgetId)
    {
        if (!isset($widgetId) && current_user_can('administrator')) {
            throw new WidgetMissingId('Missing request "widgetId" key!');
        }
        $this->arrPayload['widgetId'] = $widgetId;
    }
private function validateWidgetId(?string $widgetId)
    {
        if (!isset($widgetId) && current_user_can('administrator')) {
            throw new WidgetMissingId('Missing request "widgetId" key!');
        }
        $this->arrPayload['widgetId'] = $widgetId;
    }
Check for widget id presence
@param string $widgetId
@return null
@throws WidgetMissingId