Added isEmpty method

Based on my macro code from here: https://gist.github.com/iandrewfuchs/5520045

Let me know what you think. Cheers!