src/Zicht/Bundle/MenuBundle/Menu/Builder.php
public function hasRootItemByName($name, $request)
    {
        $menus = $this->loadRoots($request);
        return isset($menus[$name]);
    }
public function hasRootItemByName($name, $request)
    {
        $menus = $this->loadRoots($request);
        return isset($menus[$name]);
    }
public function hasRootItemByName ( $ name , $ request ) { $ menus = $ this -> loadRoots ( $ request ) ; return isset ( $ menus [ $ name ] ) ; }
Check if a root item exists.

@param string $name
@param Request $request
@return bool
Check if a root item exists .