Speed up any? and empty? by looking at keys