django template inbuilt tag search
I did this 
[isinstance(node, ExtendsNode) for node in template.nodelist]
I want to check wether my django template has an extends block or not.
Is there an inbuilt function in django that can tell whether the template contains a particular tag or not ?