check toggle converted to true / false