rename isUnlocked to isLocked