title: Angular 2 - Cannot read property '0' of undefined error
body: <p>I retrieve my JSON file from this URL [<a href="http://www.bcetupes.info/wp-json/wp/v2/posts?page=1&amp;_embed]" rel="nofollow noreferrer">http://www.bcetupes.info/wp-json/wp/v2/posts?page=1&amp;_embed]</a></p>
  
  <p>In my template, I have this code</p>
  
  <pre><code>  &lt;p *ngFor="let news of newsObj"&gt;
        {{news._embedded["wp:featuredmedia"][0]['id']}}
    &lt;/p&gt;
  </code></pre>
  
  <p>The problem is that in my JSON file "wp:featuredmedia" can be missing. I have tried several things for example {{news._embedded.featuredmedia?[0]?.id}} but I don't know how to fix this problem in the template.</p>
  
  <p>I need test if "wp:featuredmedia" exists in my object...</p>