This comes in really handy when parsing a loosely typed dictionary that a JSON parser returns to you, just in case the API you're talking to sometimes sends dodgy data that you need to handle gracefully:

Thanks for reading! And if you want to get in touch, I'd love to hear from you: chris.hulbert at gmail.