Use explicit undef in else case