title: throw if operator in Kotlin
body: <p>What would be a more elegant way to rewrite the below code in kotlin.</p>
  
  <pre><code>if (xList.isEmpty()) {
     throw SomeException("xList was empty")
  }
  </code></pre>
  
  <p>Do we have a throwif operator or something?</p>