Removed unnecessary explicit doctrine service check