There are many solutions.
If you display one element at a time, you can enable/disable the control depending of the element displayed.
If you display few elements, don't display the array but a subset of the array in a cluster where you can enable/disable elements individually.
Or add an transparent/disable boolean indicator in the array element. Edit the boolean so that it is very small when false, and large enough to cover other elements when true (on top). Then you can "disable" the element individually by setting the covering boolean to True. This may not be convenient for large amount of data.