model.id can be 0

Casting to bool is good, but what if the model id is 0? This is an issue for me right now on a mongo database.
Merge pull request #155 from slamborne/patch-1

model.id can be 0