Always check if a service is present inside a compiler pass