unless is not readable as if, consider changing to if and replace with the else block.