I faced the same trouble and here is my solution: we should count how many child elements we have under .bxslider2 block
$("#ticket-list li").length
and if there is only one, then set option to 'false', otherwise to 'true'.
$('.bxslider2').bxSlider({
mode: 'horizontal',
speed: '180',
pagerType:'full',
pager: ($("#ticket-list li").length > 1) ? true: false,
captions: false
});
Hope it will helps.