I think the `elseif` is not really needed - this is not a performance sensitive location, so I'd just add another `if` after this one