first(); if (!$setting) { return null; } $widgetId = $setting->default_widget_id; if (empty($widgetId)) { return null; } return (int) $widgetId; } }