update PHP SDK

wrapped additional debug content in isset to prevent undefined index error. defined $msg as an empty string to prevent undefined variable error.