fun foo(list: List): Int { val first = list.firstOrNull() ?: return -1 return first.length }