if passing an array then maybe it should be `array $discounts = array()`