cayasso/oomvc — Issue #6: Please add .exist() to the core
Author: noctivityinc
Created: 2011-10-26 15:38:07+00:00
State: open

Right now to check if a collection exists in a model we do this on an instance variable:

!goal.tasks.count();

I would like a shortcut method that let's me do this:

goal.tasks.exist()

which is the equivalent of

goal.tasks.count() > 0