Trying to access array offset on value of type bool

Trying to access array offset on value of type bool