Code Duplication    Length = 3-3 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2937-2939 (lines=3) @@
2934
   */
2935
  public function randomImmutable(int $number = null)
2936
  {
2937
    if (\count($this->array, COUNT_NORMAL) === 0) {
2938
      return static::create([], $this->iteratorClass, false);
2939
    }
2940
2941
    if ($number === null) {
2942
      /** @noinspection NonSecureArrayRandUsageInspection */
@@ 3010-3012 (lines=3) @@
3007
   */
3008
  public function randomMutable(int $number = null)
3009
  {
3010
    if (\count($this->array, COUNT_NORMAL) === 0) {
3011
      return static::create([], $this->iteratorClass, false);
3012
    }
3013
3014
    if ($number === null) {
3015
      /** @noinspection NonSecureArrayRandUsageInspection */