I added an check which ensure that only array's are passed.