Better to set this variable near the start of the function. Then you don't need to check isset() on the var.