Check class on __construct().