remove has-keys. optimize a little
3.0.0