explicit nil needs to turn into an empty hash

or else has_key? just asplodes later