title: Check if an Object exists in VBScript
body: <p>I'm maintaining a Classic ASP app written in VB Script by an outside company long, long ago.</p>
  
  <p>I have an array of imagefile paths, like so:</p>
  
  <pre><code>dim banners, arrKeys, i
  set banners=CreateObject("Scripting.Dictionary")
  banners.Add "banner1.jpg", "http://www.somelink.com"
  banners.Add "banner2.jpg", "http://www.somelink.com"
  banners.Add "banner3.jpg", "http://www.somelink.com"
  </code></pre>
  
  <p>This will exist ONLY on pages that have banner ads. There is some standard code that iterates through this list in an include file (common to all pages).</p>
  
  <pre><code>If Not banners Is Nothing then 
    ' then loop through the Dictionary and make a list of image links
  End if
  </code></pre>
  
  <p>The problem is that if <code>banners</code> is not instantiated on the page (it's not on all pages), I get a <code>Can't find object</code> error</p>
  
  <p>What's the proper way to check if an object exists in VB Script?</p>