public function shouldHide()
    {
        if (!$this->hideWhenEmpty) {
            return false;
        }
        
        foreach ($this->children as $child) {
            if (!$child->shouldHide()) {
                return false;
            }
        }
        
        return true;
    }
public function shouldHide()
    {
        if (!$this->hideWhenEmpty) {
            return false;
        }
        
        foreach ($this->children as $child) {
            if (!$child->shouldHide()) {
                return false;
            }
        }
        
        return true;
    }
public function shouldHide ( ) { if ( ! $ this -> hideWhenEmpty ) { return false ; } foreach ( $ this -> children as $ child ) { if ( ! $ child -> shouldHide ( ) ) { return false ; } } return true ; }
Returns true if the menu entry should be hidden

@access public
@return boolean
Returns true if the menu entry should be hidden