Detect if the user is on the home page

I am just wondering if there is a way for elgg to detect if the user is on the home-page and show a file based on that. Kind of how the isloggedin() works.

So for instance

ifhomepage() {

 link to the css

}

 

Any ideas...?