`d.has_key()` has some bad consequences sometimes. Using `attrib in d` is safer.