static bool isInPast(DateTime? dateTime) { if (dateTime == null) return false; return dateTime.isBefore(DateTime.now()); }