fix(api) Compare to void 0 instead of undefined