#5 Added an explicit check for Collections.emptyList().