test whether GET string exists before using it