Conditionally declare variable