title: How to Groovy-ify a null check?
body: <p>Is there a more "Groovy" way to write this Groovy code:</p>
  
  <pre><code>def myVar=(System.getProperty("props") == null)?
      null : System.getProperty("props")
  </code></pre>
  
  <p>Logic is:</p>
  
  <ul>
  <li>If <code>System.getProperty("props")</code> is NULL, I want <code>props</code> to be NULL;</li>
  <li>Else, I want <code>props</code> to be the value of <code>System.getProperty("props")</code></li>
  </ul>