else works inside a for loop?