Detect whether the modifers type is actually an array before trying to determine the value of one of it's elements
Merge remote-tracking branch 'upstream/1.2/develop' into 1.2/develop
Array check on both parts of if statement
Merge pull request #355 from superrbstudio/1.2/develop

Fix for adding product variants to cart