Refactor

I would rather detect it with a class_exists check on ``Doctrine\ORM\Tools\Pagination\Paginator`` (feature detection FTW). It would even ensure you check the right Doctrine version