Consolidate if statements & remove required variable in edd_get_cart_content_details()