Refactor isWizard() method