If you want to make sure that a file exists in PHP you can use the function file_exists(), which takes one parameter of the filename.
view source
Curated, Short, Web UI Dev we Love.
ui deploy.built by @mdo