Implemented conditional [ operation with paren match checking