make jquery ref safe for 0 collections