Do the initialization outside the if-condition for clarity.