/**
  * Check whether a product is in the cart or not.
  * @param product to be checked
  * @return boolean true if product is in cart, otherwise false
  */
 public static function hasProduct($product)
 {
     $cm = new CartModel();
     return $cm->hasProduct($product);
 }