php_parser.php
protected function hasNamedTagOnOpenTagStack($name)
    {
        return isset($this->tags[$name]) && (count($this->tags[$name]) > 0);
    }
protected function hasNamedTagOnOpenTagStack($name)
    {
        return isset($this->tags[$name]) && (count($this->tags[$name]) > 0);
    }
protected function hasNamedTagOnOpenTagStack ( $ name ) { return isset ( $ this -> tags [ $ name ] ) && ( count ( $ this -> tags [ $ name ] ) > 0 ) ; }
Test to see if there are any open tags awaiting closure that match the tag name.

@param string $name        Element name.

@return bool            True if any are still open.
Test to see if there are any open tags awaiting closure that match the tag name .