docs: function getEmailIfValid(emailToVerify) {
    if (emailToVerify) {
      const email = emailToVerify.trim();
      if (emailRegex.test(email)) {
        return email;
      } else {
        return undefined;
      }
    }
  }