Why check files and waste lines

Removed (file_exists) duplicates and fixed the errors.