java check if map entry exists