public function tokenExists($token, $returnQuery = false)
    {
        $query = $this->find()
            ->where([
                $this->alias() . '.token' => $token
            ]);
        if ($returnQuery) {
            return $query;
        }
        return $query->first();
    }