fixed Collection::hasValue()