empty array issue

addressed an empty array issue