private function prepareResponse($limit, $offset, array $options, array $response)
    {
        if (!isset($options['plainResponse']) || !$options['plainResponse']) {
            // Hack to ensure that the correct page is returned from the api
            if (isset($response['page']) && $response['page'] !== $this->getPage($limit, $offset)) {
                $response['entries'] = [];
            }

            if (isset($response['entries'])) {
                $response = $response['entries'];
            }
        }

        return $response;
    }
private function prepareResponse($limit, $offset, array $options, array $response)
    {
        if (!isset($options['plainResponse']) || !$options['plainResponse']) {
            // Hack to ensure that the correct page is returned from the api
            if (isset($response['page']) && $response['page'] !== $this->getPage($limit, $offset)) {
                $response['entries'] = [];
            }

            if (isset($response['entries'])) {
                $response = $response['entries'];
            }
        }

        return $response;
    }
@param int   $limit
@param int   $offset
@param array $options
@param array $response

@return array