Invert early-out logic to flatten method