docs: function checkPreconditions(options) {
      if (!options) {
          throw Error("'options' must be specified!");
      }
  
      if (!(options.modules instanceof Array)) {
          throw Error("'options.modules' must be an array!");
      }
  
      // If the modules array is empty, immediately call the onComplete() if it exists
      if (!options.modules.length) {
          if (options.onComplete) {
              invokeOnComplete(options);
          }
  
          return false;
      }
  
      return true;
  }