It can be simplified to:
return $quote->getBaseGrandTotal() >= 0.0001 || $paymentMethod->getCode() == 'free';