getState(); if (! is_array($state)) { return $this->isCopyable($state); } if (! $this->isCopyable instanceof Closure) { return $this->isCopyable; } foreach ($state as $item) { if ($this->isCopyable($item)) { return true; } } return false; } }