Merge pull request #162 from zivchang/next

[bug fixing] PTSDK-1440
[bug fixing] PTSDK-1434

fix hasService() type checking error