callable is used here. If we don't really need other than callable, may be we can use the check for that is_callable which makes compatible with 5.3