Check for GET variable before accessing it