Handle the empty case properly.