If a hard fence is too expensive. I think an invisible fence is better than a chain. A chain isn't keeping people and animals out if the yard. As long as there is a complete current it shouldn't get de-activated.
That is JMO.