this can just be `if (ViewType)`