Get Element at Index returns wrong Value!

Hey guys, I’m using 2 if statements to loop through the array PossibleMoves for a value that’s true. I use random number to get the index, and change the index if it’s not true. However, I get an error about 10% of the time that returns true even if the value at the index is false. Anyone know why? Thank you!