code: function hasKey (obj, keys) {
      let o = obj;
      keys.slice(0,-1).forEach(function (key) {
          o = (o[key] || {});
      });
  
      let key = keys[keys.length - 1];
      return key in o;
  }
docs: Part of the code from this file was originally written by the contributors in https://github.com/substack/minimist