Checks whether a hierarchy exists.
hierarchy.exists(dimension, name)
dimension
name
if( hierarchy.exists("Account", "Profit and Loss")) { //do something }