$page->hasTemplate()
Checks if the page has its own template or if it uses the default template.