check querystring instead of Object.keys length