pub fn validate_not_empty<T>(vec: &[T], name: &str) -> Result<()>
Validate that a vector is not empty