You can use `$('...').first()` instead of doing it manually.