more efficient is_enrolled