refactoring: remove extra check

If getWaypoints() returns an empty collection, then the loop will do
nothing. Since it cannot return a null value, the test is redundant.