minor: handle empty case