Habari\DB::exists PHP Метод

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

Checks for a record that matches the specific criteria
public static exists ( string $table, array $keyfieldvalues ) : boolean
$table string Table to check
$keyfieldvalues array Associative array of field values to match
Результат boolean True if any matching record exists, false if not DB::exists( 'mytable', array( 'fieldname' => 'value' ) );
    public static function exists($table, $keyfieldvalues)
    {
        return DB::instance()->connection->exists($table, $keyfieldvalues);
    }