code: function checkRequiredParameter (param) {
    return (
      typeof param === 'function' || typeof param === 'undefined' || param === '' || param === null || (typeof param === 'number' && isNaN(param))
    );
  }
docs: Check if specific required request parameter is valid