Check for null not undefined.