While you should be able to reasonably assume that uninvited people will not come on your property in Pennsylvania, it still may happen. This is especially true when it comes to children. They do not understand property rights or what it means to trespass. Sometimes, they are lured onto your property because you have something there that attracts them. When that something attracts them and could also harm them, it becomes an attractive nuisance, according to Nationwide.
If you have an attractive nuisance on your property, the liability falls to you to ensure that nobody gets hurt, even if somebody comes on your property uninvited. A great example of such a thing is a swimming pool. Children love pools. They love the water. However, they do not understand the dangers of the water. They may wander into your yard because they see the pool and want to swim. If they can easily get into the pool, it could spell disaster. This is why there are usually laws requiring you to fence in a pool and to take other measures to ensure nobody can get to it without your permission.