[class] remove unnecessary checks