Fix check for valid ical