Sorry! I meant to use continue! Continue would only skip that iteration of the loop. I’ll edit the solution. Thanks for pointing that out.
But why use pairs? It doesn’t seem like you have a specific reason to use it in that code; it just slightly decreases performance.
Edit: Also, I highly recommend ZonePlus like I mentioned earlier - it’s super easy to use, extremely clean (in terms of organization), and very reliable.