Removing isUndefined and using the more common object===undefined.