Use is_file() rather than file_exists().