See comment above about writing code like this. It's better to just use the negation and enclose the rest of the for loop inside the body of the if.