yii\mongodb\ActiveQuery::exists PHP Method

exists() public method

public exists ( $db = null )
    public function exists($db = null)
    {
        return $this->one($db) !== null;
    }