Better checking of empty line