Fixed the isChecked function that was not working in Joomla! 3.0