Updated to add isHomePage()