Moving $forceToArray from addResult argument to a static variable so it can be modified externally.