Make “is not None” checks more compact