fixed special case when an empty array is passed to license/licenses