Bail out early
Bail out early
Move var setting into simplest scope; add comments for review.