Add empty() and clear() functions to ItemStack class