if (_.has(ref, keyLabel) && _.has(ref, valueLabel) &&
        !_.isEmpty(ref[keyLabel]) && !_.isEmpty(ref[valueLabel])) {