This comment could be a little more elucidating.  Also, prefer present rather than past tense.  Also also, you can fold it into the while statement's conditional, right? :-)