records = records.map(function(record) {
                                return Object.assign(record, record.matchedRecords.length === 0 ? {
                                    failed: true,
                                    message: 'Records without matches not allowed'
                                } : {});