prat
// 1 list != null && list.size > 0 // 2 list?.let { list.size > 0 } ?: false // 3 list?.isNotEmpty() ?: false