protected function fileExists($path, $filename) { if (file_exists($path . '/' . $filename)) { return true; } if (file_exists($path . '/' . str_replace('.zip', '.txt', $filename))) { return true; } return false; }