Using the else clause on a loop