Equivalent of ~ in predicates

I need to do the equivalent of execute if items *[minecraft:custom_data~{}] inside of a predicate. Is this possible?
Continue to help post