Check that there are queries to send.