public function deleteOldBackups() { $Backups = $this->getBackupsList(); $i = 0; foreach ($Backups as $fileName => $size) { $i++; if ($i > 27) { $F = new File(Util::getRootPath() . "system/Backup/" . $fileName); $F->deleteMe(); } } }