title: GEO location TypeError: Cannot read property 'country' of null
body: <p>On a new connection i get sometimes the error <code>TypeError: Cannot read property 'country' of null</code> and mostly it works correct!</p>
  
  <p>How do i avoid this whenever its null so i will not get the error?</p>
  
  <p>Error line is <code>var location = geo.country;</code></p>
  
  <pre><code>        var ip =  socket.ip //socket.ip;
          var geo = geoip.lookup(ip);     
          var location = geo.country;
          console.log(location);
  </code></pre>