a check for [] operator