Code cleanings & minor features

Why compare with a boolean? Syntax is if (condition), condition might be true or false, so this is enough ;)