This was more efficient when written as `for i := range branch` because the value is only used once in the loop.