Rather check for var != "0", so that the user can set it to "true" too and it will work.