SOLVED How to determine whether the script is enabled?