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