Renamed getLocked to isLocked