Predicate to check if item held has a specific tag

I need a predicate that checks if item currently held has custom_data={hexhammer:true}. I've written a simple function to check it, but it doesn't seem to be working. Is there something wrong with the predicate or with the function?
Continue to help post