Added hasValue() method