Protect against asking for keys of a non-object