`if (!isset($username_string))` would be better.