public function canApply() { try { $this->discount(true); return true; } catch (CouponException $e) { return false; } }