diff --git a/classes/Widgets/SuperSearch/Result/ResultCollection.php b/classes/Widgets/SuperSearch/Result/ResultCollection.php index a29a2b2e..7a6dffde 100644 --- a/classes/Widgets/SuperSearch/Result/ResultCollection.php +++ b/classes/Widgets/SuperSearch/Result/ResultCollection.php @@ -30,7 +30,7 @@ final class ResultCollection implements JsonSerializableAlias */ public function isEmpty() { - return count($this->groups) === 0; + return (empty($this->groups)?0:(count($this->groups) === 0)); } /**