If `$(picture).has('a')` has a length, then wouldn't `$($(picture).has('a'))` be the same as `$(picture)`, in which case this statement is equivalent to the one a couple of lines below. If that's the correct interpretation, then the entire `if/else` clause has no effect. (I'm probably missing something obvious, sorry.)