Solved Xcode container access warning

- Container access (`array[x]`) should not be used to raise exceptions, it is correct to use `objectAtIndex:` in this case