Replace a large if block with an explicit return earlier on.
unless/else -> if/else.