Replace null size check with isEmpty call in CollectionUtils