diff --git a/src/Router/IndexedRouter.php b/src/Router/IndexedRouter.php
index <HASH>..<HASH> 100644
--- a/src/Router/IndexedRouter.php
+++ b/src/Router/IndexedRouter.php
@@ -66,7 +66,7 @@ class IndexedRouter extends Router
      */
     public function resolve(Request $request): ?Route
     {
-        foreach( $this->indexes[$request->getMethod()] as $route ){
+        foreach( $this->indexes[$request->getMethod()] ?? [] as $route ){
 
             if( $route->matchUri($request->getPathInfo()) &&
                 $route->matchMethod($request->getMethod()) &&
Fixing bad array access on IdexedRouter.