Extracted unlockcity method from if statement