Use explicit boolean compare instead of implicit float -> boolean