custom rule check callable or function exists