Let's factor this out of the `if`.