Apart from a SQL query, as far as I can see there is no function to determine if a specific sidebox is active.
Or is there another way?