Ugly / unreadable code. Use an if statement instead of merging an empty array?