Please add a variable `nfc` with the value of `window.navigator.mozNfc` and check the value here.