Subscript checking