fix: hash_has() does not more crash with an empty hash