How to determine if the user is viewing the front page

From Joomla! Documentation

would then function as in the case of a 404 SEF to show that a module appears as a 404?

Joomla! 1.5 example fails

Joomla! 1.5 example fails unless the Itemid is added explicitly to URL. Iv660 19:29, 12 August 2011 (CDT)

Strictly speaking: not correct!

The code is not correct, as it would also return TRUE when viewing a single article from the frontpage individually which (at least IMHO) is not the frontpage.