public function hasChildWithValidPolicy(string $oid): bool
    {
        foreach ($this->_children as $node) {
            if ($node->validPolicy() == $oid) {
                return true;
            }
        }
        return false;
    }
public function hasChildWithValidPolicy(string $oid): bool
    {
        foreach ($this->_children as $node) {
            if ($node->validPolicy() == $oid) {
                return true;
            }
        }
        return false;
    }
public function hasChildWithValidPolicy ( string $ oid ) : bool { foreach ( $ this -> _children as $ node ) { if ( $ node -> validPolicy ( ) == $ oid ) { return true ; } } return false ; }
Check whether node has a child node with given valid policy OID.

@param string $oid
@return boolean
Check whether node has a child node with given valid policy OID .