Adding isEmpty

Closed #35