guard against null response