We could combine these two ifs like it is in master, eliminating the doubled reject() cases below