Avoiding fatal errors by chechink precense of reducer function