this should check for key existence, it's raise an error otherwise.