Maintain the same code style for checking file existence