Currently, ERC20 and ERC1155 items can have 0 amounts in the inventory. It is probably more defensive to just remove this possibility.