Check all classes if exists

Will create possibility for pamelding.ukm.no to use sms.class