Don't set variable before conditional if/else