No, that's why there's a try-catch wrapping everything. In case something goes wrong, hasBorder is set to false, but I'm thinking that we should also set values for useGradient and color1 in the catch.