Ayden
var user: List<String>? = emptyList() if (user.isNullOrEmpty()) { // Error } if (user.isEmpty()) { // Error } if (user.orEmpty().isEmpty()) { // Works }