original_string: protected function isFormWidget($fieldType)
      {
          if ($fieldType === null) {
              return false;
          }
  
          if (strpos($fieldType, '\\')) {
              return true;
          }
  
          $widgetClass = $this->widgetManager->resolveFormWidget($fieldType);
  
          if (!class_exists($widgetClass)) {
              return false;
          }
  
          if (is_subclass_of($widgetClass, 'Backend\Classes\FormWidgetBase')) {
              return true;
          }
  
          return false;
      }
code: protected function isFormWidget($fieldType)
      {
          if ($fieldType === null) {
              return false;
          }
  
          if (strpos($fieldType, '\\')) {
              return true;
          }
  
          $widgetClass = $this->widgetManager->resolveFormWidget($fieldType);
  
          if (!class_exists($widgetClass)) {
              return false;
          }
  
          if (is_subclass_of($widgetClass, 'Backend\Classes\FormWidgetBase')) {
              return true;
          }
  
          return false;
      }
code_tokens: protected function isFormWidget ( $ fieldType ) { if ( $ fieldType === null ) { return false ; } if ( strpos ( $ fieldType , '\\' ) ) { return true ; } $ widgetClass = $ this -> widgetManager -> resolveFormWidget ( $ fieldType ) ; if ( ! class_exists ( $ widgetClass ) ) { return false ; } if ( is_subclass_of ( $ widgetClass , 'Backend\Classes\FormWidgetBase' ) ) { return true ; } return false ; }
docstring: Check if a field type is a widget or not
  
  @param  string  $fieldType
  @return boolean
docstring_tokens: Check if a field type is a widget or not