[jquery] How can I detect if a selector returns null?