public string ValidateSessionName(string name) { Debug.Log(SessionData); bool unique = !SessionData.AlreadyExists(name); bool empty = name.Length.Equals(0); if (empty) { return("Name size should be greater than zero."); } else if (!unique) { return("Name already exists."); } return("Pass"); }