pub fn check_map_empty<K, V>(map: &HashMap<K, V>, param: &str) -> Result<()>
Checks the hashmap is empty.