I think it should be: return packageList.size() > 0;