We can get rid of the last condition here, as it causes extra jQuery object scanning and instantiation when it's not needed.