protected function _hasAllowedChildren(array $children): bool
    {
        foreach ($children as $child) {
            if ($this->Auth->urlAllowed($child['url'])) {
                return true;
            }
        }

        return false;
    }
protected function _hasAllowedChildren(array $children): bool
    {
        foreach ($children as $child) {
            if ($this->Auth->urlAllowed($child['url'])) {
                return true;
            }
        }

        return false;
    }
protected function _hasAllowedChildren ( array $ children ) : bool { foreach ( $ children as $ child ) { if ( $ this -> Auth -> urlAllowed ( $ child [ 'url' ] ) ) { return true ; } } return false ; }
Checks if the given array of item children contains at least one
URL that is allowed to the current user.

@param array $children item children
@return bool
Checks if the given array of item children contains at least one URL that is allowed to the current user .