Perhaps is simplier to read:

if (contact.bday) {
...
}

if (contact.anniversary) {
...
}