in reply to Empty or not empty ?
Simply:
Update: oops! Thanks to ikegami for pointing out that I negated the logic here. That could be if (!@array) {} as others have written.