adding test for empty map in a variable