IsEmpty method added
added tests for IsEmpty method