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