Added the constraints boolean, isArray and keyExists