val hasItem: Boolean = if(something != null && list != null) { list.any { it.id == key } } else { false }