Improved use of "file_exists"