title: Implement forelse control in native php
body: <p>Laravel blade templating language has a really useful @forelse control structure that turns:</p>
  
  <pre><code>@if (count($results))
      @foreach ($results as $result)
          ...
      @endforeach
  @else
      echo "No results found";
  @endif
  </code></pre>
  
  <p>into</p>
  
  <pre><code>@forelse ($results as $result)
      ...
  @empty
      echo "No results found";
  @endforelse
  </code></pre>
  
  <p>Is there a way to implement this in native PHP?  I am constantly using the if(count), foreach, else structure.  I'd like a way for this to work:</p>
  
  <pre><code>forelse ($results as $result) {
       ...
  } empty {
      echo "No results found";
  }
  </code></pre>
  
  <p>Is PHP extensible enough for this to be implemented without messing with the interpreter itself?</p>