Changed config check to check boolean values as well