there is a possibility that route.name is nil, we should break on first route that actually has a name