"has special cases if the map is empty or has only one element." should be read "has special cases if the SET is empty or has only one element."