I think you are talking of a different feature or maybe promoting that things should not be treated as possibly nil or empty collections which is understandable but I���m treating the programers as good citizens that know what they do and bear the consequences (not as beasts that should be educated or indoctrinated or prevented on how to use code and do things)
testIfNilOrEmpty
| stuff thing |
stuff := nil.
self assert: stuff equals: nil.
self assert: thing equals: nil.
thing := stuff ifNilOrEmpty: [ 42 ].
self assert: thing equals: 42.
stuff := 1984.
thing := stuff ifNilOrEmpty: [ 42 ].
self deny: thing = nil.
self assert: thing equals: 1984.
self deny: thing = 42.