Minor code cleanup

 * Use explicit boolean compare instead of implicit float -> boolean conversion