If PHP has no permissions to read the file, you won't be able to check file existence via file_exists() or is_readable() as these functions depend on being able to access the file locally on your server.

The only solution that will work out is checking if the file exists using a HTTP request.

Alex' solution with file_get_contents() is one way to do that, but you must check if