original_string: public function is_enabled() {
          if (!$this->rootdir) {
              // Plugin missing.
              return false;
          }
  
          $enabled = $this->pluginman->get_enabled_plugins($this->type);
  
          if (!is_array($enabled)) {
              return null;
          }
  
          return isset($enabled[$this->name]);
      }
code: public function is_enabled() {
          if (!$this->rootdir) {
              // Plugin missing.
              return false;
          }
  
          $enabled = $this->pluginman->get_enabled_plugins($this->type);
  
          if (!is_array($enabled)) {
              return null;
          }
  
          return isset($enabled[$this->name]);
      }
code_tokens: public function is_enabled ( ) { if ( ! $ this -> rootdir ) { // Plugin missing. return false ; } $ enabled = $ this -> pluginman -> get_enabled_plugins ( $ this -> type ) ; if ( ! is_array ( $ enabled ) ) { return null ; } return isset ( $ enabled [ $ this -> name ] ) ; }
docstring: Returns the information about plugin availability
  
  True means that the plugin is enabled. False means that the plugin is
  disabled. Null means that the information is not available, or the
  plugin does not support configurable availability or the availability
  can not be changed.
  
  @return null|bool
docstring_tokens: Returns the information about plugin availability