This line must be executed anyway : move it outside the "if" and remove the whole "else" block.