in_array can be more accurate ;

in both case (current code, or in_array), we must handle the case where $callback is a string (eg, the name of a function)