public static function record_exists_select($select, array $params = null) {
        global $DB;
        return $DB->record_exists_select(static::TABLE, $select, $params);
    }
public static function record_exists_select($select, array $params = null) {
        global $DB;
        return $DB->record_exists_select(static::TABLE, $select, $params);
    }
public static function record_exists_select ( $ select , array $ params = null ) { global $ DB ; return $ DB -> record_exists_select ( static :: TABLE , $ select , $ params ) ; }
Check if a records exists.

@param string $select
@param array $params
@return bool
Check if a records exists .