maybe use full statement if, better to read

if (strpos($serviceId, 'index_client.') === false) {
    continue;
}