ensure that a hash is always present