Support for --allow-empty through a Webhook?

Is there any way to run a Webhook on an empty commit (meaning no code changes), similar to a git commit --allow-empty? I could not find any examples on this.