Some useful functions for Bitrix