fixes issue where array argument is an empty array