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.