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.
Merge pull request #93 from thomaswelton/patch-1

Fixes #92 check if array before using array_merge