You said it yourself, check that it's empty
:
if (empty($_GET)) {
// no data passed by get
}
See, PHP is so straightforward. You may simply write, what you think ;)
This method is quite secure. !$_GET
could give you an undefined variable E_NOTICE if $_GET
was unset (not probable, but possible).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…