yii\redis\ActiveQuery::exists PHP Метод

exists() публичный Метод

Returns a value indicating whether the query result contains any row of data.
public exists ( Connection $db = null ) : boolean
$db Connection the database connection used to execute the query. If this parameter is not given, the `db` application component will be used.
Результат boolean whether the query result contains any row of data.
    public function exists($db = null)
    {
        return $this->one($db) !== null;
    }