code: function hasNestedProperty(path, value) {
    const key = path.shift();
    const valueHasProperty = hasProperty(key, value);
  
    if (!path.length) {
      return valueHasProperty;
    }
  
    return valueHasProperty ? hasNestedProperty(path, value[key]) : false;
  }
docs: @function hasNestedProperty
  
  @description
  does the value have the nested key structure denoted by path
  
  @param {Array<number|string>} path the path to test
  @param {*} value the value to check for the nested path existence
  @returns {boolean} does the nested key structure exist in value