docs: function readProperty(obj, propertySegments, index) {
    const value = obj[propertySegments[index]];
    return !!value && (index === propertySegments.length - 1 || readProperty(value, propertySegments, index + 1));
  }