Add checking on whether tracks exist on tpl.php files