Add missing connected check