Rewrote toBool() to be more... useful. Fixed code style