Maybe add a comment to explain the `if`?