Phalcon\Translate\Adapter\Database::exists PHP Method

exists() public method

public exists ( string $translateKey ) : boolean
$translateKey string
return boolean
    public function exists($translateKey)
    {
        $options = $this->options;
        $result = $options['db']->fetchOne($this->stmtExists, Db::FETCH_ASSOC, ['language' => $options['language'], 'key_name' => $translateKey]);
        return !empty($result['count']);
    }