Fixes #92 check if array before using array_merge

Also updated the doc bloc to the $bodyParams param, and set a default value of null to better represent what may get passed in.

This fixes my issue. However I'm not sure on one thing... will $bodyParams always be an array or null these days? Should we be doing something else here to merge these two variables if $bodyParam is no longer always an array.