No need for this check as it's already done above and will always be true.  Seems like you could leave the `$el[0]` check here and move the `el` check out of the conditional.