refactored in b20122a10cf1f290bfff52dedc8e12462f63c9fb.

I threw in a "return early" for good measure.