`if (isRegistered !== null && isRegistered !== true) {`