Upgrade PHP Library to Support Universal Variable Specification version 1.2.0.

merge check for linked_products and reviews into a single else if statement

fix error