Are you sure this is possible? Requires can't be wrapped in a condition, as far as I know.  I thought they always executed. For example:

hooks = require(system.args[3])  if system.args[3] isnt `undefined`

will attempt to require 'undefinded'.