Add hexists. Fix the return values on an empty key.