public function merge(array $settings, string $field = null, bool $mergeArrays = false)
    {
        $merged = self::mergeSettings($this->get($field), $settings, $mergeArrays);

        if (!is_null($field)) {
            $this->put($field, $merged);
        } else {
            $this->set($merged);
        }
    }