Added method $.exists(); imprved method $.toString().