Need redirection outside the Panel

Which PHP code can I use in the templates of Kirby Helpsection Plugin from @seehat (e.g. in site\plugins\helpsection\templates\doc.php) to create a redirect e.g. to the homepage of the website if the helpsection pages are called from a webpage of the website (not from/within the panel)?

I search for something like “->isRunningInPanel()” in:

<?php if(!$page->isRunningInPanel()) go('/'); ?>