Disable a button depending on array return value

I have an array which returns;

1. training: [{dateCompleted: "2021-03-31", trainer: null, modID: 1},…]
1. 0: {dateCompleted: "2021-03-31", trainer: null, modID: 1}
2. 1: {dateCompleted: "2021-03-31", trainer: null, modID: 2}

now I would like to disable the button if the value is returned.
I have used:

 <button id="btn11" class="btn btn-block text-left" data-toggle="collapse" data-target="#c_week3" dmx-bind:disabled="view_details.data.training.where(`modID`, 3, '==')">Week 3 - {{view_details.data.dates[0].trainingStart.addWeeks(2).formatDate('dd/MM/yy')}} - Holster & Basic Movement</button>

However this is disabling the button when it should not be.
Does any one have any ideas?

Community Page
Last updated: