Check if the page exists before resolving to the route immediately