Don't declare variables and functions inside conditional statements