https://kotlinlang.org logo
k

karelpeeters

07/27/2017, 8:25 AM
If it was nullable you could do
list?.isEmpty() ?: true
.