handle the case where the response is empty better