bool routeExists(String routeName) { return _routeStack.any( (route) => route.settings.name == routeName, ); }