safeLoad(); require_once 'functions/db.php'; if (isset($_SESSION['id'])) if (!isset($_SESSION['cart'])) $_SESSION['cart'] = [];