public function hasContent()
    {
        foreach ($this->getEntries() as $node) {
            if ($node instanceof Content) {
                return true;
            } elseif ($node instanceof self) {
                if ($node->hasContent()) {
                    return true;
                }
            }
        }

        return false;
    }
public function hasContent()
    {
        foreach ($this->getEntries() as $node) {
            if ($node instanceof Content) {
                return true;
            } elseif ($node instanceof self) {
                if ($node->hasContent()) {
                    return true;
                }
            }
        }

        return false;
    }
public function hasContent ( ) { foreach ( $ this -> getEntries ( ) as $ node ) { if ( $ node instanceof Content ) { return true ; } elseif ( $ node instanceof self ) { if ( $ node -> hasContent ( ) ) { return true ; } } } return false ; }
Used when creating the navigation.
Hides folders without showable content

@return bool
Used when creating the navigation . Hides folders without showable content