[eluser]Aken[/eluser]
There's no specific function for that, but you can create a helper to do it. You'd use something like $this->uri->uri_string() to see what the current URL is, and compare that to what your homepage URL woud be (typically an empty string, or "index.php").