Update class.php

bitrix style chech params =="Y"