title: Kotlin Set to Null If Not Null
body: <p>Is there an idiom in Kotlin for setting a variable to null if it is not already null? Something more semantically pleasing than:</p>
  
  <pre><code>var test: String? = null
  if(test != null) test = null
  </code></pre>