protect against nil rows