Avoid using  in closure for PHP < 5.4.