this will fail in case of an empty array because ``$e`` will be undefined