Even when close to their stars, other worlds could harbor liquid water