Why have both cases? Just define the class as classproperty.