Is there a function to check whether a route exists or not? - TanStack