A better way to set $my_var
could be:
$my_var = isset($_GET['my_var']) ? $_GET['my_var'] : "empty";
You definitely don't want to pollute your error logs with unnecessary messages. It makes it hard to find errors you actually want to debug, and is probably making the interpreter work hard than it needs to.