Adds new function to check if we are on the homepage.