Check if JToken is empty array
<p>I have the following, after receiving a response from an API:</p>

<pre><code>JObject goatHerd = JObject.Parse(responseString);
JToken goat = goatHerd["value"];
</code></pre>

<p>Now <code>goat</code> will either contain an array of data, or it will be an empty array. How can I check for empty?</p>

<p>I tried something like this: </p>

<pre><code>if(goat != null){}
</code></pre>

<p>Unfortunately, <code>goat</code> actually equals <code>{[]}</code> according to Visual Studio. </p>

<p>I can't do:</p>

<pre><code>if(goat.length != 0){}
</code></pre>

<p>Because <code>.length</code> doesn't work with <code>JToken</code>. </p>

<p>Thanks for any help.</p>