diff --git a/src/Operation/Split.php b/src/Operation/Split.php index 07b9c662e..dcebf51d3 100644 --- a/src/Operation/Split.php +++ b/src/Operation/Split.php @@ -8,8 +8,6 @@ use Generator; use loophp\collection\Contract\Operation; -use function count; - /** * Class Split. */ @@ -54,7 +52,7 @@ public function on(iterable $collection): Closure } } - if (0 !== count($carry)) { + if ([] !== $carry) { yield $carry; } };