We're using insight and have created an object type with an attribute. This attribute is optional and is only used on a certain set of objects.
In our workflow we use the insight post function "Set a Jira custom field with the attribute value from a selected object". We need a condition where we check whether the attribute is present on the select object. If the condition fails, the target custom field can't be updated.
We've looked into the documentation, but we're not a Java company and struggle with the implementation, so a code example would be most helpful.