Oooh, I see what you mean. I technically shouldn’t need more than the next and previous in line indeed. The reason why I had to keep the entire chain in mind is because I used the array in the first place.
I think I caught the last contingency right now, but if I keep encountering issues, I will definitely try this way instead, or if I try something similar in the future.