Perspective - Scripting - Valid if view exists

8.1.7

Is their a trick to check if a view exist ?

I want to root an embeded view according to the existance or not of a view.