It's not very clear what we're testing with "i == 0" here - can we name the variable better?