<?php /** * Smarty plugin * */ function smarty_modifier_isset($string) { if(isset($_COOKIE[$string])) return true; else return false; } ?>