Ah, gotcha - added those 2 tests outside of the `for` loop and only test until a `true` condition is found.