*/ public function current(): array { $items = $this->settings->get(Setting::NewsItems); if (! is_array($items)) { return []; } return array_values(array_filter( $items, fn (mixed $item): bool => is_array($item) && is_string($item['title'] ?? null) && is_string($item['date'] ?? null) && is_string($item['content'] ?? null) && is_string($item['link'] ?? null), )); } }