HouseKeeping: replace size() tests with more efficient isEmpty()

Simple replace size() tests with more efficient isEmpty().  Ran "mvn -Pcheck clean install" and everything was clean.