If field is empty - clear another field too

If field is empty - clear another field too

How would I add to the below scrip to say:

if Enrolled_Classes field is empty (ie all classes have been deselected) clear any value in Type_of_Student field?

if(Enrolled_Classes.Stream == "Cheer Advanced" || Enrolled_Classes.Stream == "Cheer Elite" || Enrolled_Classes.Stream == "Dance")
input.Type_of_Student = "Other";
input.Type_of_Student = "Cheer Sport, Cheer Fun or non-competitive ONLY";

      Zoho SalesIQ Resources

            Zoho TeamInbox Resources

              Zoho DataPrep Resources

                  Zoho CRM Plus Resources

                    Zoho Books Resources

                      Zoho Subscriptions Resources

                        Zoho Desk Resources

                          Zoho Projects Resources

                            Zoho Sprints Resources

                              Qntrl Resources

                                Zoho Creator Resources

                                  Zoho WorkDrive Resources

                                      Zoho Campaigns Resources

                                        Zoho CRM Resources

                                                    Design. Discuss. Deliver.

                                                    Create visually engaging stories with Zoho Show.

                                                    Get Started Now

                                                      Zoho Show Resources

                                                        Zoho Writer Writer

                                                        Get Started. Write Away!

                                                        Writer is a powerful online word processor, designed for collaborative work.