Detect if a function object is callable with given arguments