function unlink($file) { $exists = is_file($file); if ($exists && !in_array($file, self::$ignore_files)) { unlink($file); } elseif (!$exists) { $this->fail("Trying to delete a file that doesn't exist: {$file}"); } }