Checking if map is null and empty