Might be more elegant/readable to put that in the condition of the `while` clause?