pub fn validate_non_empty<T>(items: &[T], field: &str) -> Result<()>
Validate that a collection is non-empty.