public function hasExtension($name)
    {
        return isset($this->extensions[$name]) || isset($this->extensionsByNs[$name]);
    }
public function hasExtension($name)
    {
        return isset($this->extensions[$name]) || isset($this->extensionsByNs[$name]);
    }
public function hasExtension ( $ name ) { return isset ( $ this -> extensions [ $ name ] ) || isset ( $ this -> extensionsByNs [ $ name ] ) ; }
Checks if we have an extension.

@param string $name The name of the extension

@return bool If the extension exists
Checks if we have an extension .