title: Conditional ternary Javascript not picking up api call
body: <p>I am making an api call where a property may or may not exist.  My first thought was wrapping that in a ternary statement would fix this issue, however, it is not.</p>
  <pre><code> newObject.fax_from      = value.from.phoneNumber  === 'undefined' ? 'none' :  value.from.phoneNumber;
  </code></pre>
  <p>When the property this not exist in the api return data, I get a message that</p>
  <pre><code>TypeError: Cannot read property 'phoneNumber' of undefined
  </code></pre>
  <p>any ideas?</p>
  <p>I even tried to be more specific such as</p>
  <pre><code> newObject.fax_from      = value.from.phoneNumber = typeof( value.from.phoneNumber) == 'undefined' ? 'none' :  value.from.phoneNumber;
  </code></pre>