title: Can't access Javascript Object property
body: <p>I'm using the Twitter API to pull my own tweets. I then want to do something if the tweet contains a URL, so I've got.</p>
  
  <pre><code>alert(tweet.entities.urls[0].expanded_url);
  
  if(tweet.entities.urls[0].expanded_url) {
      //Do stuff
  }
  </code></pre>
  
  <p>The alert does manage to get the URL from the object via the 'entities.urls[0].expanded_url' property but the condition for the if is never satisfied, WHY? O_O</p>