Code Duplication    Length = 3-3 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2739-2741 (lines=3) @@
2736
    {
2737
        $this->generatorToArray();
2738
2739
        if (\count($this->array, \COUNT_NORMAL) === 0) {
2740
            return static::create([], $this->iteratorClass, false);
2741
        }
2742
2743
        if ($number === null) {
2744
            /** @noinspection NonSecureArrayRandUsageInspection */
@@ 2819-2821 (lines=3) @@
2816
    {
2817
        $this->generatorToArray();
2818
2819
        if (\count($this->array, \COUNT_NORMAL) === 0) {
2820
            return static::create([], $this->iteratorClass, false);
2821
        }
2822
2823
        if ($number === null) {
2824
            /** @noinspection NonSecureArrayRandUsageInspection */