Adding isEmpty method and tests

For [AGIOS-32](https://issues.jboss.org/browse/AGIOS-32) we are adding a ```isEmpty``` function.

Tests are attached to the PR.

Work has been tested on these platforms:
* iOS 5.0
* iOS 5.1
* iOS 6.0
* iOS 6.1