I have a code that checks indexes of array with some ID\'s, and increases some order value for items with those ID\'s. The code looks something like this:
functio