`if (typeof options.exFormData == "object") {` would be better a better check