Thanks alchymyth.
‘if(is_category())’ is used b’coz I dont want to create 30 category.php files like … category-1.php, category-2.php, category-3.php etc.
If someone has more than 10 categories then it is cumbersome to make more that 30 category.php files.