If first visit

I want show customers certain content to if it is there first visit. I guess I can do it in php


if(isset($_COOKIE['sid_customer_xxx'])){
echo "it's set!";
} else {
echo "not set";
}




but is there a way to see if it's set in the smarty template?