Check parent during deletion