Check if a product exists in the cart