Utility: properly test array emptiness.

We don't need to compare pointers, just verify whether the array is
nullptr or not.