make KeyExists static
ReferenceError implementation; more functions for key validation