I would prefer checking the condition outside of the loop...