original_string: public function isDefined($module, $action)
      {
          foreach ($this->widgets as $widget) {
              if ($widget->getModule() === $module && $widget->getAction() === $action) {
                  return true;
              }
          }
  
          return false;
      }
code: public function isDefined($module, $action)
      {
          foreach ($this->widgets as $widget) {
              if ($widget->getModule() === $module && $widget->getAction() === $action) {
                  return true;
              }
          }
  
          return false;
      }
code_tokens: public function isDefined ( $ module , $ action ) { foreach ( $ this -> widgets as $ widget ) { if ( $ widget -> getModule ( ) === $ module && $ widget -> getAction ( ) === $ action ) { return true ; } } return false ; }
docstring: 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
docstring_tokens: Returns true if a widget exists in the widget list false if otherwise .