PCT-808: proper checking if map element exists