added ifGuid method