Correct functioning of __empty() magic method.
Merge pull request #1399 from leewillis77/isset-in-product-class

Correct functioning of __empty() magic method.