Working with index in array

Hi, me again :stuck_out_tongue:

You will be seeing me a lot on this forum during my internship XD

So here’s the question:

Right now I have an 5x5 field in an array.
I’m now searching (for what I thought was easy) a command to check the indexes around the currently clicked index. To put it to script:
myArray.[clickedIndex -1] is emptyBlock or myArray.[clickedIndex +5] is emptyBlock etc.

I’m sure this is not the correct script, but google refuses to cooperate with me.