subscripting class check