Trouble with waypoints isValid