Do a sanity check before running toHash on object in a collection.