Replaces deleteAllObjects with _.empty.