Use early continues to reduce nesting.