protected function buildClient(array &$options)
    {
        if (!isset($options['debug']) && $this->config['env'] === self::ENV_DEVELOPMENT) {
            $options['debug'] = true;
        }

        if (!isset($options['handler'])) {
            return new GuzzleClient();
        }

        $client = new GuzzleClient(['handler' => $options['handler']]);
        unset($options['handler']);
        return $client;
    }