How can I check of a heading contains an equation?

Don’t forget to use backticks for code snippets.