You shouldn't need `inventorySize` here since we're looping through the inventory and checking the IDs.