Add utility hasValue method