title: Test if a variable is a component or Boolean
body: <p>I am trying to figure out how I can test if the function of a component has returned a component or Boolean false.</p>
  
  <p>For example a component's find method like</p>
  
  <pre><code>&lt;cfset hotel = oHotel.findById(1200) /&gt;
  &lt;cfif  hotel &gt;
   ...
  &lt;/cfif&gt;
  </code></pre>
  
  <p>If a hotel is found then a component is returned, otherwise false.
  Is it generally OK to write such code, or should I write to the <code>cfif</code> another way?</p>