Php compatibility problem with array_map fixed