Fixes such as those in issue 195

Converting to bool and fixing braces