parent type check