You can remove that, the foreach look won't do anything if the array is empty.