Maybe you were looking for...

How can I test for there being 0 entities? As in, do something when there are no iron golems in a certain radius?

I am hoping to make a command that will do something when the /testfor command brings up 0 of a specified entity. For example: /testfor @e[x,y,z,r,type=Zombie,