Really check for empty item array

This fixes commit f06c133