Remove useless array in part event

Here, `array` serves no purpose but to make `index` have a value of `1`. Even then, `index` is just going to be redefined a few lines later.