I think `indicator.type() !== "UIAElementNil"` also works.