function isValidLabel(text) {
  // Note that this is quite strict: types that *might* be converted to string are disallowed
  return typeof text === "string" && text !== "";
}
Check if given value is acceptable as a label text.
@param {*} text value to check; can be anything at this point
@returns {boolean} true if valid label value, false otherwise