It's really a stylistic thing, but in a line like this, I would use the parentheses in the method call `if isFiniteAndPositive(rate) then rate else 0`