title: How do I test whether an object returned from Eloquent query is set?
body: <p>I'm testing to see if a user already has a record (d) in the database.</p>
  
  <p>My query:</p>
  
  <pre><code>$userResults = Results::where('d','=',Input::get('d'))
                        -&gt;where('user','=',Input::get('user'),'AND')-&gt;get();
  </code></pre>
  
  <p>with <code>var_dump</code> returns</p>
  
  <pre><code>object(Illuminate\Database\Eloquent\Collection)#333 (1) { ["items":protected]=&gt; array(0) { } }
  </code></pre>
  
  <p>when empty or an array of results if there.</p>
  
  <p>How do I test the object for <code>isset</code>?</p>