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