added isAssoc, patched Mongo