title: Check if json object is undefined in Node.js
body: <p>I'm getting this error "TypeError: Cannot read property '0' of undefined" when I want to extract a data from JSON file. </p>
  
  <p>However, the data I want to extract is not available every time I request a JSON file, therefore, I'm getting this error which makes my Node.js Application to crash every time I'm getting this error.</p>