Im not totally sure what you are looking for.

if ($hget(%name,Pack)) <pack is already entered.