Correct way to get query params