public function isDefined($module, $action)
    {
        foreach ($this->widgets as $widget) {
            if ($widget->getModule() === $module && $widget->getAction() === $action) {
                return true;
            }
        }

        return false;
    }
public function isDefined($module, $action)
    {
        foreach ($this->widgets as $widget) {
            if ($widget->getModule() === $module && $widget->getAction() === $action) {
                return true;
            }
        }

        return false;
    }
public function isDefined ( $ module , $ action ) { foreach ( $ this -> widgets as $ widget ) { if ( $ widget -> getModule ( ) === $ module && $ widget -> getAction ( ) === $ action ) { return true ; } } return false ; }
Returns `true` if a widget exists in the widget list, `false` if otherwise.

@param string $module The controller name of the widget.
@param string $action The controller action of the widget.
@return bool
Returns true if a widget exists in the widget list false if otherwise .