Check whether a file exists
<-- this is irony
A simple Craft 3 plugin which adds a Twig filter for checking whether a file exists
For the Craft 2 version see https://github.com/moresoda/existential/tree/craft2/master [https://github.com/moresoda/existential/tree/craft2/master]
No configuration is necessary
Use it like this, {% if asset.getUrl() | fileExists %}
The plugin will return 'true' if the file exists and 'false' if otherwise.
Some things to do, and ideas for potential features:
Brought to you by Pete Eveleigh