Added check to ensure destination is not an array