Changed isEnrolled function airity