Clean up block check.

And, yes, apply some of my wacky C-style formatting for readability.