Converting to bool and fixing braces