check for nil response