Support optional require providing and harden failure case