[UPDATE] logging rpc error message
[UPDATE] no php notice when array is empty
Merge pull request #1740 from iAmShorty/log-rpc-error

[UPDATE] logging rpc error message