replace foo.size() == 0 with foo.isEmpty()
Merge pull request #371 from dbmalkovsky/ACT-2101

ACT-2101 replace foo.size() == 0 with foo.isEmpty()