case typeof arg.getChoices() !== "undefined" &&
            (arg.getType() === "array" || Array.isArray(defaultValue)):
            // Use checkbox question type
            questions.push({
              name,