public function has(string $name) : bool
    {
        foreach ($this->tags as $tag) {
            if ($tag->name == $name) {
                return true;
            }
        }

        return false;
    }
public function has(string $name) : bool
    {
        foreach ($this->tags as $tag) {
            if ($tag->name == $name) {
                return true;
            }
        }

        return false;
    }
public function has ( string $ name ) : bool { foreach ( $ this -> tags as $ tag ) { if ( $ tag -> name == $ name ) { return true ; } } return false ; }
True if at least one tag with the given name exists.
It's possible that a tag has multiple values.

@param  string $name
@return bool
True if at least one tag with the given name exists . It s possible that a tag has multiple values .