title: Using return inside a lambda?
body: <p>In the code below, I want to show my empty views if trips is empty and then return and avoid running the below code, but the compiler says "return is not allowed here".</p>
  
  <pre><code>mainRepo.fetchUpcomingTrips { trips -&gt;
      if (trips.isEmpty()) {
          showEmptyViews()
          return
      }
  
      // run some code if it's not empty
  }
  </code></pre>
  
  <p>Is there a way to return like that?</p>
  
  <p>I know I can just put it in an if else block but I hate writing if else's, it's less understandable/readable in my opinion when there's a few more conditions.</p>