Use member function instead of regexp to check services array