1) check if the hash is empty (all elements are undef) 2) reset all elements to undef