title: How to detect if a specific file exists in Vimscript?
body: <p>I'm looking for an elegant way in Vimscript to check if a file exists in the current directory.</p>
  
  <p>I came up with the code below but I'm not sure if that's the most elegant solution (I'll set a Vim option if the file exists). Is there any way of not having to do another comparison of the filename?</p>
  
  <p>Maybe use a different built-in function from Vim?</p>
  
  <pre><code>:function! SomeCheck()
  :   if findfile("SpecificFile", ".") == "SpecificFile"
  :       echo "SpecificFile exists"
  :   endif
  :endfunction
  </code></pre>