Accepts an array of keys, adds isValidKey method.