Check how many matches were found for the given data type we're checking for.  1 for bool and float, 3 for vec3.  Return false and assign default values if this isn't true.