correct logic: should return when $func is not callable even when class log does not exist