How let a function be used in a guard like is_binary/1

I don’t object to anything you said, I am just wondering what kind of code you’re looking to write in the end, hence me earlier reply.