`$.isEmpty` would amke this a little bit more stable