You might add the arity to the function check here. As you mentioned elsewhere is possible something might mix the two so I'd be a bit more specific so we catch the error earlier in the stack.