Add singleEntity check method to GenericDoctrineMapper