Corrected 'in' problem in classpresent method