add an `inserted` param to hattrie_get