These are hard to read. Try something like:

var checked = $el.is(':checked');

$el.parent()[checked? 'addClass' : 'removeClass']('checked');