public function hasChildren()
    {
        $property = $this->_propertyExtractor($this->_nestKey);
        $children = $property($this->current());

        if (is_array($children)) {
            return !empty($children);
        }

        return $children instanceof Traversable;
    }
public function hasChildren()
    {
        $property = $this->_propertyExtractor($this->_nestKey);
        $children = $property($this->current());

        if (is_array($children)) {
            return !empty($children);
        }

        return $children instanceof Traversable;
    }
public function hasChildren ( ) { $ property = $ this -> _propertyExtractor ( $ this -> _nestKey ) ; $ children = $ property ( $ this -> current ( ) ) ; if ( is_array ( $ children ) ) { return ! empty ( $ children ) ; } return $ children instanceof Traversable ; }
Returns true if there is an array or a traversable object stored under the
configured nestKey for the current item

@return bool
Returns true if there is an array or a traversable object stored under the configured nestKey for the current item