can't change constants

Since we can't change constants, checking to see if they exist instead of always changing the value.