How to check home page or not – Joomla

<?php
if(JRequest::getVar(‘view’) == ‘featured’ ) :

echo ‘ Home page’;

else :

echo ‘Inner page’;

endif;

?>