title: Find key in nested object
body: <p>Why does this always return false?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var dependsOn = {
    "Cadastro": {
      "RHID": "RHID"
    },
    "Agregados": {
      "CD_DOC": "CD_DOC"
    },
    "Documentos": {
      "RHID": "CD_DOC"
    }
  }
  var field = 'RHID'
  
  _.mapKeys(dependsOn, function(value, key) {
    if (_.some(dependsOn[key], function(o) {
        return _.has(o, field);
      })) {
      console.log(key);
    }
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.4/lodash.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>