Check the if the products is grouped or not Magento

if(Mage::helper(‘core’)->escapeHtml($product->getTypeId())==”grouped”)
echo “Grouped Product”;