check if the product has a category prior to checking the discount.