if value is not empty
336934
def is_not_empty(self, value, strict=False):
        """"""
        value = stringify(value)
        if value is not None:
            return
        self.shout('Value %r is empty', strict, value)
1112005
function isNotNull(value, message, id) {
    if (message === void 0) { message = ''; }
    if (id === void 0) { id = ''; }
    if (this.enabled && value === null) {
        throw ValueException.expectedValue(assertionTypes.IS_NOT_NULL, value, null, message, id);
    }
}
215983
public static function isEmpty($value): bool
    {
        return (!__::isArray($value) && !__::isObject($value)) || count((array)$value) === 0;
    }
746902
function isValue(val) {
    return (!isUndefined(val)
        && !isNull(val) && !(isNumber(val) && isNaN(val))
        && !isInfinite(val));
}
856622
def is_empty(self):
        '''
        
        '''
        return (self.is_valid() and
            not self.simple_lookups and
            not self.complex_conditions and
            not self.extra_conditions)
1077597
def skip_if_empty(func):
    
    @partial_safe_wraps(func)
    def inner(value, *args, **kwargs):
        if value is EMPTY:
            return
        else:
            return func(value, *args, **kwargs)
    return inner
202377
function isEmpty(val) {
  return _.isNull(val) || _.isUndefined(val) || _.isNaN(val) || helper.isBlank(val);
}
891376
public function checkDataIsEmpty()
    {
        if ($this->isDataExists() === false) {
            $this->contextDataEmpty = true;
        }
        elseif (is_object($this->getDataValue())) {
            $this->contextDataEmpty = false;
        }
        elseif (is_array($this->getDataValue())) {
            $this->contextDataEmpty = false;
        }
        elseif (is_string($this->getDataValue())) {
            $this->contextDataEmpty = (bool) (strlen($this->getDataValue()) == 0);
        }
        elseif (is_numeric($this->getDataValue())) {
            $this->contextDataEmpty = false;
        }
        else {
            $this->contextDataEmpty = (bool) $this->checkIsEmpty($this->getDataValue());
        }
    }
415527
function isEmpty(data) {
    if (Array.isArray(data)) {
        return data.length === 0;
    }
    return Object.keys(data).length === 0;
}
501613
function isEmpty( value ) {
	if ( isString( value ) && !value.length ) {
		return true;
	}
	if ( isArray( value ) && !value.length ) {
		return true;
	}
	if ( typeof value !== 'object' || value === null ) {
		return false;
	}
	return ( !keys( value ).length );
}
733500
function(value) {
        if (attr.required && ctrl.$isEmpty(value)) {
          ctrl.$setValidity('required', false);
          return;
        } else {
          ctrl.$setValidity('required', true);
          return value;
        }
      }
1247567
def check(self, value):
        
        if self._inclusive:
            return False if self._min <= value <= self._max else True
        else:
            return False if value > self._max or value < self._min else True
897424
def text(self, value):
        """"""
        if value in (None, '') or value.strip() == "":
            raise AttributeError("Empty text value is invalid.")
        self._text = value
469850
def empty(val):
    
    if val == None:
        return True

    if isinstance(val,str) and len(val) > 0:
        return False

    return True
36348
private function isEmpty($value)
    {
        // Assume that the value is empty
        $empty = true;

        // If the value is an array
        if (is_array($value)) {
            foreach ($value as $element) {
                // The value is empty if all elements of the array are empty
                $empty = $empty && $this->isEmpty($element);
            }
        } else {
            // We can't use the empty function here because it treats "0" as empty
            $empty = strlen($value) == 0;
        }

        return $empty;
    }
483174
def _clean(self, value):
		""""""
		
		value = (str(v) for v in value)
		
		if self.strip:
			value = (v.strip() for v in value)
		
		if not self.empty:
			value = (v for v in value if v)
		
		return value
1066117
function isTruthy(val) {
    if (!isValue(val))
        return false;
    if (typeof val === 'number')
        return val > 0;
    if (isString(val) && !val.length)
        return false;
    return (val !== false &&
        val !== isNaN(val));
}