Adds tests for present params with nil and empty

Test added for empty array (valid) and test for nil.
Merge pull request #761 from mynameisrufus/empty-array-require

Support empty array for required params