fun foo(p: List, b: Boolean) { var v = p[0] if (v == null) return if (b) v = null }