public function isRouteDefined(string $routeKey): bool
    {
        return (isset($this->getAttribute('routes')[$routeKey]) || ! empty($this->getAttribute('routes')[$routeKey]));
    }
public function isRouteDefined(string $routeKey): bool
    {
        return (isset($this->getAttribute('routes')[$routeKey]) || ! empty($this->getAttribute('routes')[$routeKey]));
    }
public function isRouteDefined ( string $ routeKey ) : bool { return ( isset ( $ this -> getAttribute ( 'routes' ) [ $ routeKey ] ) || ! empty ( $ this -> getAttribute ( 'routes' ) [ $ routeKey ] ) ) ; }
Check if a route is defined from its key.

@param string $routeKey

@return bool
Check if a route is defined from its key .