Shouldn't you check *options.extraSignupFields* exists before calling typeof?