Assign the snippet value to a variable

{s name="NameFromSnippet" assign="tplVariable"}Default Value{/s}
{$tplVariable|replace:'Test':'Lol'}

Read plugin config values

{config name="myVar" namespace="MYPLUGINNAME"}

Check existence of Template file

{if "frontend/foo.tpl"|template_exists}