more accurate checking of corner case 'case class A()'
Added unnecessary if check