check first if a method's returned value is a valueset