isDimDefined helper