This looks like new code. Oooh, it hurts me so much to see...

And yes, I realize it's the more "correct" thing to do, but dang. What a horribly painful check.