Code Duplication    Length = 3-3 lines in 2 locations

src/Arrayy.php 2 locations

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