Is this `if` statement necessary?