how to check value in maps