make sure it's a hash