src/Franzose/ClosureTable/Extensions/Collection.php
public function hasChildren($position)
    {
        $item = $this->get($position);
        $relation = $item->getChildrenRelationIndex();

        return array_key_exists($relation, $item->getRelations());
    }
public function hasChildren($position)
    {
        $item = $this->get($position);
        $relation = $item->getChildrenRelationIndex();

        return array_key_exists($relation, $item->getRelations());
    }
public function hasChildren ( $ position ) { $ item = $ this -> get ( $ position ) ; $ relation = $ item -> getChildrenRelationIndex ( ) ; return array_key_exists ( $ relation , $ item -> getRelations ( ) ) ; }
Indicates whether an item has children.

@param $position
@return bool
Indicates whether an item has children .