It may be worth adding another ``if`` to make it more readable.