ISELEMENT argument is not a list or variant: <name>

The first argument that you passed to the IsElement function is not the name of a list or the name of a variable of type Variant holding a list.

Change the argument to a list or a Variant holding a list, or remove the call to the IsElement function.