Shorter bounds check for next_router