title: Cannot use 'in' operator to search for .... in undefined
body: <p>I have got a following code:</p>
  
  <pre><code>function sendAjax(myData){
    $.ajax({
        type: myData["verb"],
        url: "url" in myData["url"] ? myData["url"] : "/default123",
        //..............
  </code></pre>
  
  <p>If I don't pass "<code>url</code>" as a key then I'll get the error of "<code>Uncaught TypeError: Cannot use 'in' operator to search for 'url' in undefined</code> ".</p>
  
  <p>How do I get rid of it?</p>