title: Check if json array exists c#
body: <p>I have a json object like so:</p>
  
  <pre><code>{
      "Name": "Mike",
      "Personaldetails": [
          {
              "Age": 25,
              "Surname": "Barnes"
          }
      ],
      "Address": [
          null
      ]
  }
  </code></pre>
  
  <p>Now I have written C# to access this code and iterate over each object in the <code>"Personal Details"</code> array and into <code>"Address"</code> array.</p>
  
  <p>How would I write a check to see if the array is null?</p>
  
  <pre><code>dynamic jsonObject = JsonConvert.DeserializeObject(data);
  
  foreach (var obj in jsonObject.Personaldetails)
  {
       if (obj.Age = 24)
       {
            //do stuff
       }
  }
  
  //This is where I am stuck
  if(jsonObject.Address = null)
  {
      return "null array";
  }
  //If another json stream was not null at "Address" array
  else
  {
      foreach (var obj in jsonObject.Address)
      {
           if (obj.arrayItem == "Something")
           {
                //do stuff
           }
      }
  }
  </code></pre>