minor refactorings for got_nils? & nil_substituter