added empty item list check