Use undef instead of empty hash