The check for `i > 0` is not necessary here - if it's false, then this branch would do the same thing as the `else` branch below.