Future<T?> runSafely<T>(FutureOr<T> Function() action) async { try { return await action(); } catch (_) { return null; } }