Invert $.grep logic to make this easier to understand