959895 - Handling nil for products

Probably due to https://github.com/rails/rails/pull/8862. It appears that Rails is converting [] to nil for JSON calls. Thus, we need to check if params has products as a key instead of just checking that it's truthy.