Adding in a preemptive measure so that there is no error if the checkbox goes unchecked