public function loadArray(array $options, Config $config = null)
    {
        Assertion::notEmpty($options);

        if (is_null($config)) {
            $config = new Config();
        }

        $options = $this->doReplacements($options);

        $config->merge(
            new Config($options)
        );

        return $config;
    }