Error trapping around empty bodies