Helper methods for checking for null, undefined and types in Javascript
Update validators so that an undefined or null value to check is invalid,
rather than throwing an exception.  Invalid options still throw exceptions.