title: How do I return falsey values from a Scope Query in Laravel 4?
body: <p>Regarding Scope Queries, is it intended behavior that returning any <code>falsey</code> value will result in an <code>Eloquent\Builder</code> being returned? </p>
  
  <p>If I return any <code>non-falsey</code> value (say a number, string, array, etc) it will return the actual value (be it a number, string, array, etc) but if I return false, 0, null it always returns an Eloquent\Builder.</p>
  
  <p>Is there a way to work around this, and return the correct type when a <code>falsey</code> instead of a object of type builder?</p>
  
  <p><strong>Abstracted Test Case</strong></p>
  
  <p><em>In Model</em></p>
  
  <pre><code>class MyModel extends Eloquent
  {
    public function scopeTestFalse{
      return 0;  
    }
    public function scopeTestTrue()
    {
      return 99;  
    }
  
  }
  </code></pre>
  
  <p><em>In Route</em></p>
  
  <pre><code>var_dump(MyModel::scopeTestFalse()); // object(Illuminate\Database\Eloquent\Builder)
  var_dump(MyModel::scopeTestTrue()); // int(99)
  </code></pre>