It might sound clear to you but it's not really. This is how you insert.
Array: Set value at (0,0) to Sprite.UID
Array: Set value at (1,0) to 4 (or whatever)
Unfortunately we can't see the proprties of your array
We don't know why you are storing UID (maybe you're doing something wrong there). You should store some "ID" value IMO
"I need to stop the insert action" What does this mean?
"I need to compare if the UID match" Match what?