title: jQuery check if returned JSON is NULL
body: <p>I have this returned JSON:</p>
  
  <pre><code>results: Array[15]
  0: Object
  created_at: "Wed, 10 Aug 2011 22:45:36 +0000"
  from_user: "CriisBellaFlor"
  from_user_id: 360990380
  from_user_id_str: "360990380"
  geo: null
  </code></pre>
  
  <p>I'm using this code to loop around it:</p>
  
  <pre><code>var twitterUrl='http://search.twitter.com/search.json?callback=?&amp;q=';
                  query='cinema';
                  $.getJSON(twitterUrl+query,function(json){
                      console.log(json);
                      $.each(json.results,function(i,tweet){
                          if(tweet.iso_language_code == 'en'){
                              if(tweet.geo === 0){
                                  $(cinemas).append('&lt;img src="'+tweet.profile_image_url+'" width="48" height="48" /&gt;'+tweet.text+'&lt;br /&gt;');
                              } else {
                                  $(cinemas).append('&lt;img src="'+tweet.profile_image_url+'" width="48" height="48" /&gt;'+tweet.text+'Coordinates:' + tweet.geo.coordinates[0] + ' + ' + tweet.geo.coordinates[1] + '&lt;br /&gt;');
                              }
  
                          }
                      });
                  });
  </code></pre>
  
  <p>So what i'm trying to determine is, if "geo" is null, dont try and display the coordinates, if there is something there, display them.</p>
  
  <p>But i get this error:</p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'coordinates' of null
  </code></pre>