docs: function isErrorObj(val) {
    if (notObjectOrIsEmpty(val)) {
      return false;
    }
    const type = typeof val.message;
    if (type === 'string' || type === 'number') {
      return val;
    }
    return false;
  }