added ability to forcibly add/remove class by provided condition in toggleClass method