changed repository name to arangodb/foxx-apps
optimisation for empty arrays