According to my testing, it should be like this<?php if (! function_exists('array_any')) { function array_any(array $array, callable $callable) { foreach ($array as $key => $value) { if ($callable($value, $key)) return true; } return false; }}?>