void 0 is the same as undefined. So you need to check for null too.