Add hasValue and getValueKey to Object class