Invert conditional to reduce nesting.