Declare variable in global scope if not defined