begin() nullptr check