While `cart.empty` could be passed around, it is undefined on first render and results in an error being thrown. The example here was broken and needed fixing.