subjectExists method