Javascript Check If Array Contains Subarray Product