title: How can i check if image file exists on smarty using URL?
body: <p>I want to check if the webp image is exists on the server on <code>smarty</code>. The <code>URL</code> is an absolute <code>URL</code> like <a href="https://example.com/image.webp" rel="nofollow noreferrer">this</a>.</p>
  <p>i tried</p>
  <pre><code>{if file_exists(&quot;https://example.com/image.webp&quot;)}
  {/if}
  </code></pre>
  <p>and</p>
  <pre><code>{if 'https://example.com/image.webp'}
  
  {/if}
  </code></pre>
  <p>But none is working. Can anyone tell me how to do this?</p>