public function hasTag($tag)
    {
        if ($this->isTopTag($tag)) {
            return true;
        }

        return isset($this->tags[$tag]) && is_array($this->tags[$tag]);
    }
public function hasTag($tag)
    {
        if ($this->isTopTag($tag)) {
            return true;
        }

        return isset($this->tags[$tag]) && is_array($this->tags[$tag]);
    }
public function hasTag ( $ tag ) { if ( $ this -> isTopTag ( $ tag ) ) { return true ; } return isset ( $ this -> tags [ $ tag ] ) && is_array ( $ this -> tags [ $ tag ] ) ; }
Check if tag is present inside template
Check if tag is present inside template