why not just use getNumberOf() > 0 
- it is slightly slower but probably not speed critical ...