Added return early if doctrine extension does not exist.