Handle 'undefined' properly.