check if json_query actually has data