Also, you could invert this to reduce nesting.