use JEM\Util for some array functions