add methods to check if an "array path" exists in an array
fix typo
remove inneeded indirection in the image validator