src/bbn/parsers/doc.php
private function tag_has_text(string $tag){
    return in_array('text', array_values(
      \is_array($this->tags[$tag]) ?
        $this->tags[$tag] :
        $this->tags[$this->tags[$tag]]
    ));
  }
private function tag_has_text(string $tag){
    return in_array('text', array_values(
      \is_array($this->tags[$tag]) ?
        $this->tags[$tag] :
        $this->tags[$this->tags[$tag]]
    ));
  }
private function tag_has_text ( string $ tag ) { return in_array ( 'text' , array_values ( \ is_array ( $ this -> tags [ $ tag ] ) ? $ this -> tags [ $ tag ] : $ this -> tags [ $ this -> tags [ $ tag ] ] ) ) ; }
Cheks if a tag has 'text'

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