finished checkSafeEnchantment() function