Shouldn't that be more correct with `is` instead of `==`?  It'll be a little faster too (but nothing more than a 20% improvement).