This version of Unity is unsupported.

Animator.hasTransformHierarchy

Switch to Manual
public bool hasTransformHierarchy;

Description

Returns true if the object has a transform hierarchy.

Based on the Optmize Game Object toggle of Model Importer.