check the cart for elements