Do we have mismatched instance (tree instance vs photo instance) protection in a validation function?