Document/AbstractCategoryDocument.php
public function hasVisibleChildren()
    {
        if (is_array($this->children) && count($this->children)) {
            foreach ($this->children as $child) {
                if (!$child->isHidden()) {
                    return true;
                }
            }
        }

        return false;
    }
public function hasVisibleChildren()
    {
        if (is_array($this->children) && count($this->children)) {
            foreach ($this->children as $child) {
                if (!$child->isHidden()) {
                    return true;
                }
            }
        }

        return false;
    }
public function hasVisibleChildren ( ) { if ( is_array ( $ this -> children ) && count ( $ this -> children ) ) { foreach ( $ this -> children as $ child ) { if ( ! $ child -> isHidden ( ) ) { return true ; } } } return false ; }
Tests if category has any visible children.

@return bool
Tests if category has any visible children .