if (options.where[collection.primaryKey || 'id']) {
            single = 'primaryKey';
        } else {
            _.each(collection.secondary_indices, function (secondary_index) {
                if (options.where[secondary_index]) {