判断 List 不为空(修复了原来的逻辑错误)
static bool listNoEmpty(List? list) { if (list == null) return false; return list.isNotEmpty; }