PHP: count($item->hasEnchantments())//hasEnchantments return an array of enchantments Enchantment[] to be exact