Not a big deal but you could have used ``continue`` here to reduce nesting.