 class ScheduleSortedAndExpand: SetConfigurations, SetSchedules {
     private var schedulesNSDictionary: [NSDictionary]?
     private var scheduleConfiguration: [ConfigurationSchedule]?
-    private var expandedData = [NSDictionary]()
+    private var expandedData: [NSDictionary]?
     private var sortedschedules: [NSDictionary]?
 
     // Calculate daily schedules

                    "timetostart": time,
                    "profilename": profilename,
                ]
                self.expandedData.append(dictSchedule)
            }
        }
    }

                        "timetostart": time,
                        "profilename": profilename,
                    ]
                    self.expandedData!.append(dict)
                case "daily":
                    self.daily(dateStart: dateStart, schedule: schedule, dict: dict)
                case "weekly":
