title: If file_exists Smarty
body: <p>I'm new coding and Could someone tell me what i am doing wrong.</p>
  
  <p>I want to see if a image exists in a folder but it won't display the image if it exists.</p>
  
  <pre><code>{assign var="backimg" value="/thumbs/backgrounds/movie_bg/`$mov.title|lower|replace:' ':'_'`.jpg"}
  { if file_exists($backimg) }
  &lt;div class="container_inner"
  style="background:url(/thumbs/backgrounds/movie_bg/{$mov.title|lower|replace:' ':'_'}.jpg)no-repeat center;"&gt;
  {else}
  &lt;div class="container_inner"&gt;
  {/if}
  </code></pre>
  
  <p>Could someone tell me if there is anything wrong with my code.</p>