Function
The path after the locale segment, leading slash included
true when a route exists for it
Only the first segment is examined, and deliberately. What follows is data, not routing: an unknown course slug or lesson id is the application's business, and it answers with an inline recovery state rather than a missing page. Pre-empting that here would replace a helpful screen with a bare 404.
The home — an empty path — is always known.
Whether the router has a route for this path, judged by its first segment.