`assert callable(callback)` is more idiomatic IMO