[10.x] Optimize exists
validation for empty array input
#48684
Merged
exists
validation for empty array input
#48684