abstracted AllNull out into method call