function schemaHasEncryptedProperty(schema, path) {
  path = [path].flat();
  path = path.join('.');

  return path in schema.encryptedFields;
}
@param {import('../lib').Schema} object
@param {Array<string> | string} path
@returns { boolean }