bool hasLocal(String variableName)

Checks whether this view has a local variable called variableName.

Source

bool hasLocal(String variableName);