Useful functions to work with Bitrix