queryString can probably just be optional, using `!queryString` to check if it's omitted instead of `queryString !== ''`