private function tag_has_name(string $tag){
    return in_array('name', array_values(
      \is_array($this->tags[$tag]) ?
        $this->tags[$tag] :
        $this->tags[$this->tags[$tag]]
    ));
  }
private function tag_has_name(string $tag){
    return in_array('name', array_values(
      \is_array($this->tags[$tag]) ?
        $this->tags[$tag] :
        $this->tags[$this->tags[$tag]]
    ));
  }
private function tag_has_name ( string $ tag ) { return in_array ( 'name' , array_values ( \ is_array ( $ this -> tags [ $ tag ] ) ? $ this -> tags [ $ tag ] : $ this -> tags [ $ this -> tags [ $ tag ] ] ) ) ; }
Cheks if a tag has 'name'

@param string $tag The tag name
@return boolean
Cheks if a tag has name