public function requireActiveCategory() { if (!Category::isCategoryActive($_GET['id_category'])) { header('Location: sale.php'); exit; } }