`CollectionUtils.isNotEmpty` can be clear for this kind of thing. (This code is fine as it is, though.)