title: WooCommerce - Checking for brand page
body: <p>I'm using <code>WooCommerce</code> on our site along with their Brands add-on to be able to group products together by brand - I know <code>WooCommerce</code> has it's own built in selection of hooks and filters but I want to write a function that checks if I'm on a Brand page or not because as far as I can tell it piggybacks <code>WooCommerce</code> post types to display the information.</p>
  
  <p>I have used <code>get_post_type()</code> on both a normal <code>WooCommerce</code> category and product page, and also when I'm on a Brand page but all three come up with the custom post type of <code>product</code>. I know that the Brands plug-in uses a custom taxonomy of <code>product_brand</code> somewhere but I'm not sure how I can write a query to check if the page I'm on has this taxonomy.</p>
  
  <p>If I run the following query…</p>
  
  <pre><code>$terms = get_terms( 'product_brand');
  
  print_r($terms);
  </code></pre>
  
  <p>I get all of the brands that we have setup showing on the page.</p>
  
  <p>Can anyone point me in the right direction?</p>