private function injectPager(array $response, $method, $url, array $params = [])
    {
        while (next($response)) {
            if ('paging' === key($response)) {
                prev($response);
                break;
            }
        }

        $pageableKey = key($response);

        $response[$pageableKey] = new Pager($response, $pageableKey, $this->client, $method, $url, $params);

        reset($response);

        return $response;
    }