title: Invalid list index 2
body: <p>I' am getting <code>Invalid list index 2</code> which means that in the <code>index 2</code> is not defined. How can check if <code>index 2</code> is defined in ColdFusion?</p>
  
  <pre><code>&lt;cfif
      ListGetAt('/pages.cfm/about-us/' 1 , "/") eq 'news' AND 
      ListGetAt('/pages.cfm/about-us/', 2 , "/") eq 'press' AND 
      ListGetAt('/pages.cfm/about-us/', 3 , "/") eq '2016'AND 
      ListGetAt('/pages.cfm/about-us/', 4 , "/") neq ''&gt;
      &lt;cfoutput&gt;It Works!&lt;/cfoutput&gt;
  &lt;/cfif&gt;
  </code></pre>