proper way to check for query param