protected function checkIfMiddlewareExistsInStack(string $middleware, array $middlewareStack): bool 	{ 		foreach ($middlewareStack as $currMiddleware) { 			if (str_starts_with($currMiddleware, $middleware)) { 				return true; 			} 		}  		return false; 	}