CLN: Combine checknull/checknull_old
Is there a reason that both checknull and checknull_old are separate functions? It seems like they could be combined into one function with a parameter inf_as_na. This duplication also seems to be present with the  isnaobj/isnaobj_old functions.

I'm asking since having this be unified would greatly simplify my work in #42147