public function isVisibleFor($login)
    {
        $personalVisibility = parent::isVisibleFor($login);
        if (!$personalVisibility) {
            return $personalVisibility;
        }


        foreach ($this->getChilds() as $childItem) {
            if ($childItem->isVisibleFor($login)) {
                return true;
            }
        }

        return false;
    }
public function isVisibleFor($login)
    {
        $personalVisibility = parent::isVisibleFor($login);
        if (!$personalVisibility) {
            return $personalVisibility;
        }


        foreach ($this->getChilds() as $childItem) {
            if ($childItem->isVisibleFor($login)) {
                return true;
            }
        }

        return false;
    }
public function isVisibleFor ( $ login ) { $ personalVisibility = parent :: isVisibleFor ( $ login ) ; if ( ! $ personalVisibility ) { return $ personalVisibility ; } foreach ( $ this -> getChilds ( ) as $ childItem ) { if ( $ childItem -> isVisibleFor ( $ login ) ) { return true ; } } return false ; }
Check if menu is visible and at least one children is visible.

@param string $login

@return bool|mixed
Check if menu is visible and at least one children is visible .