No reason to not test hideOccurrencesFilter(events, false) on the check.occurrences exists and is not NaN test, too.