Use member function instead of regexp to check services array

Fixes issue reported in https://leap.se/code/issues/6139