Why can't you just return null here? Then you could literally just delete `checkRouteParams` and rename this function to `checkRouteParams`. Unless I'm completely missing something here...