Feature: Return array instead of defining it

references https://github.com/easybib/issues/issues/1179