public static function priceWithDiscount($price, $discount, bool $discountIsPercent = false)
    {
        if ($discountIsPercent) {
            $discount = $discount / 100;
        }
        return $price - ($price * $discount);
    }