diff --git a/src/ElasticsearchEngine.php b/src/ElasticsearchEngine.php index ef6f2c0..61c86de 100644 --- a/src/ElasticsearchEngine.php +++ b/src/ElasticsearchEngine.php @@ -210,7 +210,7 @@ public function mapIds($results) */ public function map($results, $model) { - if (count($results['hits']['total']) === 0) { + if ($results['hits']['total'] === 0) { return Collection::make(); }