function getFirstNonEmptyValue(values) {
  return (values || []).find(v => Boolean(v));
}
Get the first non-empty item from an array.
@param {Array} values Array of values.
@returns {*} First non-empty value or undefined.