static function get_callable($object, $method_name) { $callable = array($object, $method_name); return is_callable($callable) && method_exists($object, $method_name) ? $callable : null; }