Added hasValue() method.