how to differentiate between Nomatch and NoInput

I am unable to differentiate between no match and noinput.

I can see a json returning with No match or No input but I don’t know how to access it

{“debugTitle”:“Intent Failed/Abandoned”,“reason”:{“cause”:“Incorrect entity failure - MAX_NO_MATCH occured”},“result”:“failtask”,“messageStoreId”:“ms-35c18eb3-f84c-56ff-9525-29e9f337a7ec”,“channelId”:“st-3f85affe-b9d1-5c39-8b75-f7c9a1a5203d:5f181e93888b0e5cd06e8709/ivrvoice/1199e07264ffae87:ivrVoice”,“bot”:“IT Helpdesk Assistant”,“botid”:“st-3f85affe-b9d1-5c39-8b75-f7c9a1a5203d”,“task”:“MainMenu_Task”,“botLanguage”:“en-US”,“nluLanguage”:“en”,“taskId”:“dg-fa440bf8-d1c8-5530-9489-86e398140b37”,“fields”:{},“parentId”:“dg-df64ff11-ff0c-5c14-bb16-604cb782426d”,“intentStatus”:“published”,“subType”:“dialog”,“channelInfo”:“st-3f85affe-b9d1-5c39-8b75-f7c9a1a5203d:5f181e93888b0e5cd06e8709/ivrvoice/1199e07264ffae87:ivrVoice”,“input”:[],“entities”:{},“failedNode”:“MainMenu”,“taskContextId”:“dcx-86e419d1-d2ad-59e1-aead-eaf6446f3fe3”,“language”:“en”,“channel”:“ivrVoice”,“userId”:“u-b341e2ed-3ecf-5618-b292-18450a60e4a4”,“time”:“2023-09-12T00:19:51.246Z”,“_id”:“f-11a622ef-adca-5270-8b66-71abc6779e51-1694477991247”,“resourceid”:“korastatuslogs”,“entityOrgId”:“o-01ac0380-b9e5-5ba7-9c3e-af282044a2ba”,“iv”:“/NhQt2gh2hgCk2d/j2XjWQ==”,“cek”:{“header”:{“alg”:“dir”,“enc”:“aes-256-cbc”,“kid”:“k-6802a463-5493-5bcb-b195-bec200c6deea”}},“ire”:true,“NLAnalysis”:{“input”:[]}}

In the entity node, if max retry reaches, I am sending to bot action where we have a script node, I am trying to access highlighted value using context.reason.cause but getting error, can you please advise?

Script failed, An error occurred while accessing transferstatus: Cannot read property ‘cause’ of undefined

can some one how to access above the json with in the script node?