better checking for query string arrays