Added isEmpty function
Added support for different guid scheme