Thing is, user code should not have the responsibility to check that libquery is valid. Such checks are only source of confusion and errors as nobody will think about finding and updating them in some obscure specific area of the code...
make format