private function record_fresh($record) { if ($record['expires'] > time() || $record['keep']) { return true; } elseif (file_exists($record['file'])) { unlink($record['file']); } return false; }