original_string: public function hasExtension($name)
      {
          return isset($this->extensions[$name]) || isset($this->extensionsByNs[$name]);
      }
code: public function hasExtension($name)
      {
          return isset($this->extensions[$name]) || isset($this->extensionsByNs[$name]);
      }
code_tokens: public function hasExtension ( $ name ) { return isset ( $ this -> extensions [ $ name ] ) || isset ( $ this -> extensionsByNs [ $ name ] ) ; }
docstring: Checks if we have an extension.
  
  @param string $name The name of the extension
  
  @return bool If the extension exists
docstring_tokens: Checks if we have an extension .