No need for this nested `if` (compact with `elseif`)