added hasValue for collection
updated dist