How to check when an array is modified

I have an array of scriptable objects. I was wondering if there is some callback function or something similar when I modify this array in editor window; more specifically, I need to know when an element from the array is removed so I can modify a variable of that object.