This `if` can be merged with `elseif` below, and probably as replacement for `else` line above.