add a check to ensure that there are products to add to the cart