public static function testCodeExists($code)
 {
     $promo = new Promo();
     $q = "SELECT COUNT(*) AS total FROM " . parent::TABLE . " WHERE code='{$code}' AND actif<>-1";
     return $promo->get_result($promo->query($q), 0, 'total');
 }