Only call class apt if not defined