title: Chef Recipe How To Check If File Exists
body: <p>I just started using Chef and I'm trying to figure out how to first check if a file exists before doing anything. </p>
  
  <p>I have the file part down for my current use case, where I'm removing a login file for the production server, ex:</p>
  
  <pre><code>file '/var/www/html/login.php' do
      action :delete
  end
  </code></pre>
  
  <p>However, I'd like the abilty to first check if the file exists, ex.</p>
  
  <pre><code>if (file_exists === true)
      file '/var/www/html/login.php' do
          action :delete
      end
  end
  </code></pre>