public static function firstBy(array $array, Closure $closure)
    {
        foreach ($array as $key => $value) {
            if (true === call_user_func_array($closure, array($key, $value))) {
                return $value;
            }
        }
        return null;
    }
public static function firstBy(array $array, Closure $closure)
    {
        foreach ($array as $key => $value) {
            if (true === call_user_func_array($closure, array($key, $value))) {
                return $value;
            }
        }
        return null;
    }
public static function firstBy ( array $ array , Closure $ closure ) { foreach ( $ array as $ key => $ value ) { if ( true === call_user_func_array ( $ closure , array ( $ key , $ value ) ) ) { return $ value ; } } return null ; }
Get first value in array from closure

@param array $array
@param callable $closure
@return mixed
Get first value in array from closure