Won't this fail if I try to call `foldl1` or `foldr1` on an empty range?