bug fixed in dropdownToggle() function
extended reach of isEmpty() function