Please use a foreach loop instead.