STYLE: Replace test of size()==0 with calls to empty