null checking of query args