code: function tryRequire(filePath) {
    let resolvedPath = req.resolve(filePath);
  
    if (resolvedPath) {
      return req(resolvedPath);
    }
  
    return undefined;
  }
docs: Try to require a module, do not fail if module is missing
  @param {string} filePath
  @returns {module}
  @throw if fails for reason other than missing module