Add isHome method to pages