Simplify funcion arg compatibility check