Move outside if statement, to protect else clause