yii\db\QueryTrait::isEmpty PHP Method

isEmpty() protected method

The value is considered "empty", if one of the following conditions is satisfied: - it is null, - an empty string (''), - a string containing only whitespace characters, - or an empty array.
protected isEmpty ( mixed $value ) : boolean
$value mixed
return boolean if the value is empty
    protected function isEmpty($value)
    {
        return $value === '' || $value === [] || $value === null || is_string($value) && trim($value) === '';
    }