Uuuh, then there should be a way to check this without throwing an exception.  look into 'asdfasdf' in object.keys(), isinstance() and the .get('key', 'fallbackvalue')