Replace callable by Closure to be compatible with PHP 5.3