protected function getResponses(array $executeResponse)
    {
        if (isset($executeResponse['error'])) {
            return array_fill(0, $this->requests->count(), $executeResponse['error']);
        }

        $errors = isset($executeResponse['execute_errors']) ? $executeResponse['execute_errors'] : [];

        return array_map(function ($response) use (&$errors) {
            return $response ?: array_shift($errors);
        }, $executeResponse['response']);
    }