Changed the type hint in the signature of TemplateCheck::check() from DOMNode to DOMElement