Existence function

You can use the exists function to test for the existence of an element.

Use the following syntax:

exists ($element)

The function returns TRUE if the element was created for this particular event; otherwise it returns FALSE.