fix wrong use of is_callable()