title: How to check Newtonsoft.Json.Linq.JArray If null Or get length
body: <p>I have array coming in C# code of type dynamic. Before process it I need to check if 'answers' array has record so I tried number of attempt and I am not getting any result. I have tried if(array==null), Count(), Length, DefaultIfEmpty()</p>
  
  <pre><code>answerItem
  {{
   "questionId": "9ca96ed8-ec33-c09b-a634-0e3e32245f99",
   "answers": [],
  }}
  </code></pre>
  
  <p>above record is with null answers.</p>
  
  <p>if record in answer array then it will be like </p>
  
  <pre><code>"answer":[
      {"id":"333", "value":"my answer"}
    ]
  </code></pre>