Do the if, and in the else still call getObject, if it already exist, then call createGuid.