structure: add IsStruct() method