Code Duplication    Length = 3-3 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2961-2963 (lines=3) @@
2958
   */
2959
  public function randomImmutable(int $number = null)
2960
  {
2961
    if (\count($this->array, COUNT_NORMAL) === 0) {
2962
      return static::create([], $this->iteratorClass, false);
2963
    }
2964
2965
    if ($number === null) {
2966
      /** @noinspection NonSecureArrayRandUsageInspection */
@@ 3034-3036 (lines=3) @@
3031
   */
3032
  public function randomMutable(int $number = null)
3033
  {
3034
    if (\count($this->array, COUNT_NORMAL) === 0) {
3035
      return static::create([], $this->iteratorClass, false);
3036
    }
3037
3038
    if ($number === null) {
3039
      /** @noinspection NonSecureArrayRandUsageInspection */