don't use . operator on dictionary when not sure key is present