Checking which values are scalars.