added method to check whether event data contains value for a given key