public function issetDynamicRoute(string $method, string $regex): bool
    {
        return isset($this->dynamicRoutes[$method][$regex]);
    }
public function issetDynamicRoute(string $method, string $regex): bool
    {
        return isset($this->dynamicRoutes[$method][$regex]);
    }
public function issetDynamicRoute ( string $ method , string $ regex ) : bool { return isset ( $ this -> dynamicRoutes [ $ method ] [ $ regex ] ) ; }
Determine if a dynamic route exists.

@param string $method The request method
@param string $regex  The regex

@return bool
Determine if a dynamic route exists .