pub fn check_map_not_empty<M>(map: &M, param: &str) -> Result<()>where M: MapLike,
Checks the map is not empty.
Returns an error if the validation check fails.