diff --git a/src/Application/Results.php b/src/Application/Results.php index 1fea46f..41dc7ba 100644 --- a/src/Application/Results.php +++ b/src/Application/Results.php @@ -7,7 +7,6 @@ use Countable; use function array_key_exists; use function array_merge; -use function is_array; class Results implements Countable { @@ -52,10 +51,6 @@ public function count(): int /** @return AggregationResult[] */ private function parseNestedAggregations(array $rawAggregation): array { - if (!isset($rawAggregation['doc_count'])) { - return []; - } - $aggregations = []; foreach ($rawAggregation as $nestedAggregationName => $rawNestedAggregation) { if (isset($rawNestedAggregation['buckets'])) {