error handling for feature vectors trimmed to nothing
error handling addendum: array::clear()