`(:is var-attrs)` will always be nil as var-attrs wouldn't have been evaluated yet.

You'll need to separate it out and move it to the quoted let below so you can determine at runtime if it's a custom element or not.