title: Validate file path parameter
body: <pre><code>param ([ValidateScript({ Test-Path -Path $_ -PathType Leaf })][string]$filePath)
  </code></pre>
  
  <p>If I declare a parameter like this, will <code>$filePath</code> evaluate to false if it's an invalid path?</p>
  
  <p>Is the point of this to do something like</p>
  
  <pre><code>if($filePath) { /* do stuff... */ }
  </code></pre>
  
  <p>or will an exception be thrown?</p>