code: protected function hasNamedTagOnOpenTagStack($name)
      {
          return isset($this->tags[$name]) && (count($this->tags[$name]) > 0);
      }
docs: 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.