Checking if number of objects is < 1 in PHP object array
<p>I am trying to check whether the number of items in an object is less than one like this:</p>

<pre><code>if ( count($trailhead_list-&gt;o &lt; 1 ) )
</code></pre>

<p>It always returns true even if there is some items there.</p>
