public function enabled($name)
    {
        return isset($this->hooks[$name]) && $this->hooks[$name]->enabled;
    }
public function enabled($name)
    {
        return isset($this->hooks[$name]) && $this->hooks[$name]->enabled;
    }
public function enabled ( $ name ) { return isset ( $ this -> hooks [ $ name ] ) && $ this -> hooks [ $ name ] -> enabled ; }
Check if hook is enabled.

@param $name

@return bool
Check if hook is enabled .