The foxes are getting in at night and attacking the chickens . I shall have to guard *them* .

Are "The foxes" and "them" the same entity?
no