allow you to use count() on fileds which might be undef