title: Get nested JSON/object value without needing many intermediate checks?
body: <p>suppose i have a complex json object x with mixed objects and arrays.
  Is there a simple or generic way to check if a variable is null or undefined within this object, such as:</p>
  
  <pre><code>if(x.a.b[0].c.d[2].e!=null) ....
  </code></pre>
  
  <p>instead of normally checking all the parent fields</p>
  
  <pre><code>if(x.a!=null 
  &amp;&amp; x.a.b!=null
  &amp;&amp; x.a.b[0]!=null
  &amp;&amp; x.a.b[0].c!=null
  &amp;&amp; x.a.b[0].c.d!=null
  &amp;&amp; x.a.b[0].c.d[2]!=null
  &amp;&amp; x.a.b[0].c.d[2].e!=null) ....
  </code></pre>