Prevent duplicates from being added to the cart.