Adds tests for present params with nil and empty

Test added for empty array (valid) and test for nil.