simplify callback param checking