How could I avoid assigning null to userList in this code and get the same behaviour? Is it a bad practice?
fun update(type: Update) { fun List