Devise\Menus\MenusRepository::childrenLoaded PHP Method

childrenLoaded() private method

checks if the children relation has been lazy loaded the goal is to respect the 'depth' value requested when the menu was built
private childrenLoaded ( MenuItem $item ) : boolean
$item MenuItem
return boolean
    private function childrenLoaded($item)
    {
        $relations = $item->getRelations();
        return isset($relations['children']);
    }