Checking the truthiness of `nextRoute` here is a bit odd when you're assuming it is an object on line `35` in `if (nextRoute.anonymous === false)`. Perhaps remove it from this conditional?