Update jsdoc and currect null check.