Checks if Argument is Scalar
Check if the argument is scalar, i.e. a numeric vector of length 1.
isScalar(x)
x
logical
Useful links