Check using == class