if (acEntries[i].to === null && i === acEntries.length && accountPlanningCalendar._id !== acEntries[i]._id) {
                    next(new Error('To add a new schedule period, all other scheduled calendars must have a end date'));
                    return;
                }