check for null in response object