IF taxonomy archive is hierarchical THEN

I’m trying to put in a conditional in my archive.php that sorts our whether the taxonomy is hierarchical or not. This is what I have so far but it doesn’t work.

<?php if ( is_taxonomy_hierarchical() ) { ?> I am a hierarchical tax  <?php } else { ?> I am NOT a hierarchical tax  <?php } ?>