public function exists($path)
    {
        foreach ($this->route->getList() as $route) {
            if (isset($route['pattern']) && $route['pattern'] === $path) {
                return true;
            }
        }

        return (bool) $this->get(array('alias' => $path));
    }
public function exists($path)
    {
        foreach ($this->route->getList() as $route) {
            if (isset($route['pattern']) && $route['pattern'] === $path) {
                return true;
            }
        }

        return (bool) $this->get(array('alias' => $path));
    }
public function exists ( $ path ) { foreach ( $ this -> route -> getList ( ) as $ route ) { if ( isset ( $ route [ 'pattern' ] ) && $ route [ 'pattern' ] === $ path ) { return true ; } } return ( bool ) $ this -> get ( array ( 'alias' => $ path ) ) ; }
Whether the alias path already exists
@param string $path
@return boolean
Whether the alias path already exists