Added a way to check for the existence of a key in general