Raise error in case either array or function is not provided
Fix multiple
0.6.1