You never check that execOptions is a function (ie ```` typeof execOptions === "function" ````)