public bool isUnlocked() { if (theLock != null) { return(theLock.isUnlocked()); } else { return(true); } }