Should test for absence of key in hash, not for its value being nil.