[#52431787] Remove isEmpty() checks on Collections.