Feature: Return array instead of defining it

references https://github.com/easybib/issues/issues/1179
@fh Too much to adjust this? LMK, otherwise looks good.