add case to check for query string existence (not the empty string)