Slight change to logic in getCoupon()