code: function validateFunctionArgs(args) {
          for(var n=0; n<args.length; n++) {
              if(!(args[n] instanceof Function) && args[n] !== undefined)
                  throw new Error("Passed handler "+(n+1)+" is not a function")
          }
      }
docs: private