In order that would make the home page you can create a unique file in the template with the name of page-front.tpl.php, but if you create a template and you simply need to determine a home page or not, you can use drupal_is_front_page. If the current home page - TRUE, otherwise - FALSE. So we can write