function isEmpty(variable) {
  return variable === null || variable === '' || isUndefined(variable);
}
Check if given variable is null, empty string or undefined.

@param {*} variable Variable to check.
@returns {Boolean}