test for truthy instead of test for true
cleanup unused variable