Remove last redundant loop condition
As `skipped` is always reset to 0, the condition is always true. Change the skipValidItems calculation to make it more obvious it calculates the remainder, and is always a positive value. Declare skipped inside the loop, as it is only used inside the loop. No functional changes.