In the lines below this one, it would have been good to make all three if-clauses test for a rejection, and use "continue" as the body.  It would read better.