This make sense? if($_GET['anchor'] != null) {?

Hello
what is wrong here? i want to do one action if on the url theres any anchor=…
example… i have a link to index.php
and i have another link to index.php?anchor=roger
in one link i don’t want to do nothing
on the second i want to echo roger.
What is wrong in

if($_GET['anchor'] != null) {

?
And by the way… how to use this GET command if it’s inside an iframe? It’s not getting the url from the top page :frowning:
Thanks in advance