[stable21] Handle files with is_file instead of file_exists
#29416
+6
−6
is_file instead of file_exists
#29416