robust check for nil cart items