protected function prepareHttpQueryString(string $query, array $appends = []): string
    {
        if (! empty($appends)) {
            $query .= (! empty($query) ? '&' : '').http_build_query($appends);
        }

        return $query;
    }