code: function checkNotEmpty(string, message) {
      if (!message || !message.trim()) {
          throw new Error("No error message passed to checkNotEmpty");
      }
  
      if (!string || !string.trim()) {
          throw new Error(message);
      }
  }
docs: Checks that the string passed in is not null, empty or entirely whitespace.
  If this is not the case, throws an error with the message provided.
  
  @param {string} string - The string to check
  @param {string} message - A message to throw in an Error if the string is empty