fix code for checking if item is a catagory for more efficient solr indexing