Check if the file exists because otherwise php generates an error