Real analytic functions with isolated zeroes on domains of topological vector spaces