Check if the realm exists already, if so, attach it.