public function hasSub($name, $ns = null)
    {
        foreach ($this->subs as $sub) {
            if (($name === "*" or $sub->name === $name) and ($ns === null or $sub->ns === $ns)) {
                return true;
            }
        }
        return false;
    }
public function hasSub($name, $ns = null)
    {
        foreach ($this->subs as $sub) {
            if (($name === "*" or $sub->name === $name) and ($ns === null or $sub->ns === $ns)) {
                return true;
            }
        }
        return false;
    }
public function hasSub ( $ name , $ ns = null ) { foreach ( $ this -> subs as $ sub ) { if ( ( $ name === "*" or $ sub -> name === $ name ) and ( $ ns === null or $ sub -> ns === $ ns ) ) { return true ; } } return false ; }
Has this XML Object the given sub?

@param string $name
@return boolean
Has this XML Object the given sub?