/**
  * Return array of cart products
  *
  * @param  cart (object)
  * @return  array of products | or empty
  */
 public static function getCartProducts(cart $cartObject)
 {
     $cart_products = array();
     foreach ($cartObject->getProducts() as $product) {
         $cart_products[] = $product;
     }
     return $cart_products;
 }