check if the item is already in the cart