early return to avoid arrow anti-pattern