title: Is there a one liner for this?
body: <p>Assuming <code>search</code> is expensive, is there a way to make this a one liner?</p>
  
  <pre><code>result = Product.search(query)
  return result if result
  </code></pre>
  
  <p>Since the search is expensive, the following is out:</p>
  
  <pre><code>return Product.search(query) if Product.search(query)
  </code></pre>