Workaround a strange behaviour of is_callable()