protected function isGatewayType($gatewayType, $paymentMethod = false) { if ($paymentMethod) { return $paymentMethod->gatewayType() == $gatewayType; } else { return $this->gatewayType === $gatewayType; } }