Check QUEUE membership

I have a QUEUE with JOINEMPTY = no

I want to play a WAV file before the call gets into the queue only if it has agent logged in
If no agent logged in, I want to be able to skip the pre-message Playback before the queue application

Question is, how do I check a queue status without actually putting the call into the queue application? That would solve my problem.

Type “core show function QUEUE_MEMBER” at the CLI prompt.

Nevermind, I found the soln:

$[${QUEUE_MEMBER_COUNT(testQ1)} = 0]?..

QUEUE_MEMBER_COUNT is deprecated in favour of the one I quoted.