I would like to check if a zone is playing before running a command (so I can pause playback when turning off the amp if something's playing, but not set it to pause if it's not playing). How do I do that? I have set up the component, but I don't know how to query it. Do I have to use the events in the logger to set a variable each time the state is changed, or can I query it directly?