as it is now, nonnull() won't let you tell empty (all null items) vector from the vector with first (index = 0) non-null item
I have a vector {0,6,7,0,4,1,0,6,6,0}. When counting indexes of non-null items nonnull() function works as expected

but in case of empty vector {0,0,0,0,0,0,0,0,0,0} nonnull() should retrun size of the vector (10) but unfortunately it's not. what's going on here?
