public function isDiscount(Order $Order, $discount) { if ($Order->getTotal() < $discount) { return false; } return true; }