check if route exists in data