isSingular function

Check if a variable only contains a single value