[BUGFIX] Add file existence check before processing it