Fix keyval check in present()
It might be 0 in arrays.
Fast-track top-level boolean false
This allows to harden present() check.
Due to this check being slow (and done twice in some edge cases), I will introduce some exceptions there after this PR lands.
This is why code is currently organized that way -- i.e. separate branches for keyname and keyval.
Due to this check being slow (and done twice in some edge cases), I will introduce some exceptions there after this PR lands. This is why code is currently organized that way -- i.e. separate branches for
keyname
andkeyval
.