easier way is just

//say I have $script(0) script(s) running.

If the number os above 1, you have to have a script running. >:D (Unles remote is off)

EDIT: Infact just do /remote off and see if you can get an error one more.