check for null (not undefined)