src/Checker/Traits/NotEmptyTrait.php
public function notEmpty($value, bool $asString = true): bool
    {
        if ($asString && is_string($value) && strlen(trim($value)) == 0) {
            return false;
        }

        return !empty($value);
    }
public function notEmpty($value, bool $asString = true): bool
    {
        if ($asString && is_string($value) && strlen(trim($value)) == 0) {
            return false;
        }

        return !empty($value);
    }
public function notEmpty ( $ value , bool $ asString = true ) : bool { if ( $ asString && is_string ( $ value ) && strlen ( trim ( $ value ) ) == 0 ) { return false ; } return ! empty ( $ value ) ; }
Value should not be empty.

@param mixed $value
@param bool  $asString Cut spaces and make sure it's not empty when value is string.

@return bool
Value should not be empty .