Intrahealth improvements

Why check the length instead of just doing `if total_row:`?